mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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 */
|
else /* If we don't have a buffer */
|
||||||
{ /* allocate one, then parse, */
|
{ /* allocate one, then parse, */
|
||||||
InFile->bSize = BUFR_INC; /* then free. */
|
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 )
|
if( NULL == InFile->bufr )
|
||||||
{
|
{
|
||||||
DEBUG(0,("%s memory allocation failure.\n", func));
|
DEBUG(0,("%s memory allocation failure.\n", func));
|
||||||
|
Loading…
Reference in New Issue
Block a user