s3-spoolss: Fix two uninitialized vars in spoolss util code.
authorGünther Deschner <gd@samba.org>
Fri, 9 Apr 2010 16:44:19 +0000 (18:44 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 9 Apr 2010 16:44:19 +0000 (18:44 +0200)
Guenther

source3/rpc_server/srv_spoolss_util.c

index c3aafe395948480d6d708a74a928f8b924246462..0037f66d30d4227778897305ae4da7eb71107c0f 100644 (file)
@@ -441,6 +441,7 @@ static WERROR winreg_printer_enumvalues(TALLOC_CTX *mem_ctx,
 
                val.type = type;
                val.data_length = data_size;
+               val.data = NULL;
                if (val.data_length) {
                        val.data = talloc(enum_values, DATA_BLOB);
                        if (val.data == NULL) {
@@ -1549,7 +1550,7 @@ WERROR winreg_printer_setform1(struct pipes_struct *p,
        uint32_t i;
        WERROR result;
        NTSTATUS status;
-       TALLOC_CTX *tmp_ctx;
+       TALLOC_CTX *tmp_ctx = NULL;
 
        for (i = 0; i < num_builtin; i++) {
                if (strequal(builtin_forms1[i].form_name, form->form_name)) {