diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-10 13:42:37 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-12 09:42:32 +0100 |
commit | e039676fe2c2fe5c7ef53e1e58487dd048e37013 (patch) | |
tree | 6d02a71b9b3765577523f9a1c7b558b510a92821 /source3 | |
parent | c83f9330a40fc53ec4cbfdfcafa2a95eae4cf7fa (diff) | |
download | samba-e039676fe2c2fe5c7ef53e1e58487dd048e37013.tar.gz samba-e039676fe2c2fe5c7ef53e1e58487dd048e37013.tar.bz2 samba-e039676fe2c2fe5c7ef53e1e58487dd048e37013.zip |
s3-printing: Don't call talloc_free on an uninitialized pointer.
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 5050a5d0dc..252fbb8db5 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1222,7 +1222,7 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx, DEBUG(10,("printer_driver_in_use: Completed search through ntprinters.tdb...\n")); if ( in_use ) { - struct spoolss_DriverInfo8 *driver; + struct spoolss_DriverInfo8 *driver = NULL; WERROR werr; DEBUG(5,("printer_driver_in_use: driver \"%s\" is currently in use\n", r->driver_name)); |