1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

r543: possible fix for BUG 1293 -- initialize pointer to NULL to ensure the failure check is valid

This commit is contained in:
Gerald Carter 2004-05-07 03:15:54 +00:00 committed by Gerald (Jerry) Carter
parent be74e88d9a
commit b7005e6989

View File

@ -3056,6 +3056,7 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, char *buf, int buflen)
/* check to see if there are any more registry values */
regval_p = NULL;
len += tdb_unpack(buf+len, buflen-len, "p", &regval_p);
if ( !regval_p )
break;