mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
loadparm: fix a load of uninitialized memory errors found by valgrind.
This commit is contained in:
parent
357631b8b9
commit
2b9299310f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user