1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3-spoolss: Fix two uninitialized vars in spoolss util code.

Guenther
This commit is contained in:
Günther Deschner 2010-04-09 18:44:19 +02:00
parent 202d330be6
commit 357006bf07

View 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)) {