From 2b9299310fdce8d4298089bf67cafd6e9e748ec2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 3 Feb 2012 00:21:50 +0100 Subject: loadparm: fix a load of uninitialized memory errors found by valgrind. --- lib/util/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util/params.c') 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)); -- cgit