From 2b26c86fe6727fafef0dd5079fd75a334ea49b63 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Mar 2011 10:58:55 +0100 Subject: s3: Fix Coverity ID 2285: Uninitialized read We passed the structure including the uninitialized elements to dcerpc_winreg_DeleteValue. --- source3/rpc_server/spoolss/srv_spoolss_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/spoolss/srv_spoolss_util.c b/source3/rpc_server/spoolss/srv_spoolss_util.c index 049abe40fd..cfbe113c49 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_util.c +++ b/source3/rpc_server/spoolss/srv_spoolss_util.c @@ -2517,7 +2517,7 @@ WERROR winreg_delete_printer_dataex(TALLOC_CTX *mem_ctx, uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED; struct dcerpc_binding_handle *winreg_handle = NULL; struct policy_handle hive_hnd, key_hnd; - struct winreg_String wvalue; + struct winreg_String wvalue = { 0, }; char *path; WERROR result = WERR_OK; NTSTATUS status; -- cgit