diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-07 03:15:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:28 -0500 |
commit | 5254c9b6b492792fde6ae294d3d0be3fd3bb0f0f (patch) | |
tree | 397000808a7c60585f3a9069148ae6b2130b50d1 /source3/printing | |
parent | 63378d6f0efa4612da1aecb5dee14992ac069d0f (diff) | |
download | samba-5254c9b6b492792fde6ae294d3d0be3fd3bb0f0f.tar.gz samba-5254c9b6b492792fde6ae294d3d0be3fd3bb0f0f.tar.bz2 samba-5254c9b6b492792fde6ae294d3d0be3fd3bb0f0f.zip |
r543: possible fix for BUG 1293 -- initialize pointer to NULL to ensure the failure check is valid
(This used to be commit b7005e6989946bbd0e42d84d2688f3a96a649791)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index e187f325f4..fd7968f45d 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -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", ®val_p); if ( !regval_p ) break; |