1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3-spoolss: fix some uninitialized variables.

Guenther
This commit is contained in:
Günther Deschner 2010-04-27 17:55:55 +02:00
parent b764145ac8
commit 03a9ac4e2b

View File

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