From 357006bf074a0c6788b948f0c0260ec85caeec09 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 9 Apr 2010 18:44:19 +0200 Subject: s3-spoolss: Fix two uninitialized vars in spoolss util code. Guenther --- source3/rpc_server/srv_spoolss_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') 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)) { -- cgit