summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-03 00:21:50 +0100
committerMichael Adam <obnox@samba.org>2012-02-03 11:10:29 +0100
commit2b9299310fdce8d4298089bf67cafd6e9e748ec2 (patch)
tree6dd9b7feaa61e85b7d1388eee297f5c5fce7631f /lib
parent357631b8b9da95c5cd43e05e8ad9d7ef43fb67da (diff)
downloadsamba-2b9299310fdce8d4298089bf67cafd6e9e748ec2.tar.gz
samba-2b9299310fdce8d4298089bf67cafd6e9e748ec2.tar.bz2
samba-2b9299310fdce8d4298089bf67cafd6e9e748ec2.zip
loadparm: fix a load of uninitialized memory errors found by valgrind.
Diffstat (limited to 'lib')
-rw-r--r--lib/util/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/params.c b/lib/util/params.c
index 45fcd5bdc8..3f1d535999 100644
--- a/lib/util/params.c
+++ b/lib/util/params.c
@@ -556,7 +556,7 @@ bool pm_process( const char *FileName,
else /* If we don't have a buffer */
{ /* allocate one, then parse, */
InFile->bSize = BUFR_INC; /* then free. */
- InFile->bufr = talloc_array(InFile, char, InFile->bSize );
+ InFile->bufr = talloc_zero_array(InFile, char, InFile->bSize );
if( NULL == InFile->bufr )
{
DEBUG(0,("%s memory allocation failure.\n", func));