s3-spoolss: fix some uninitialized variables.
authorGünther Deschner <gd@samba.org>
Tue, 27 Apr 2010 15:55:55 +0000 (17:55 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 27 Apr 2010 15:55:55 +0000 (17:55 +0200)
Guenther

source3/rpc_server/srv_spoolss_util.c

index 1035b20b2f6141530d2385289805536031f91810..a0dc1289d4f80016c2960277429433a2d4d37a3c 100644 (file)
@@ -1368,7 +1368,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
        struct rpc_pipe_client *winreg_pipe = NULL;
        struct policy_handle hive_hnd, key_hnd;
        struct spoolss_SetPrinterInfo2 *info2;
-       struct spoolss_DeviceMode *devmode;
+       struct spoolss_DeviceMode *devmode = NULL;
        struct security_descriptor *secdesc;
        struct winreg_String wkey, wkeyclass;
        const char *path;
@@ -3324,7 +3324,7 @@ WERROR winreg_add_driver(TALLOC_CTX *mem_ctx,
        struct rpc_pipe_client *winreg_pipe = NULL;
        struct policy_handle hive_hnd, key_hnd;
        struct spoolss_DriverInfo8 info8;
-       TALLOC_CTX *tmp_ctx;
+       TALLOC_CTX *tmp_ctx = NULL;
        WERROR result;
 
        ZERO_STRUCT(hive_hnd);