r543: possible fix for BUG 1293 -- initialize pointer to NULL to ensure the failure...
authorGerald Carter <jerry@samba.org>
Fri, 7 May 2004 03:15:54 +0000 (03:15 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 7 May 2004 03:15:54 +0000 (03:15 +0000)
source/printing/nt_printing.c

index e187f325f4b5d87e8dc74e62d6f60aaca5094320..fd7968f45d2aeea3779cd790d1ff63524daf0d98 100644 (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;