diff options
author | Günther Deschner <gd@samba.org> | 2010-04-09 18:44:19 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-09 18:44:19 +0200 |
commit | 357006bf074a0c6788b948f0c0260ec85caeec09 (patch) | |
tree | acb7c2a4fecafde1d944cdb1af933d4e8d0ad2f7 | |
parent | 202d330be6f6fe249b0ec241342762a533320d1b (diff) | |
download | samba-357006bf074a0c6788b948f0c0260ec85caeec09.tar.gz samba-357006bf074a0c6788b948f0c0260ec85caeec09.tar.bz2 samba-357006bf074a0c6788b948f0c0260ec85caeec09.zip |
s3-spoolss: Fix two uninitialized vars in spoolss util code.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index c3aafe3959..0037f66d30 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -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)) { |