From b753b0ab82ed7d806f85d1e67afa4416ee7e77dc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Mar 2011 11:02:57 +0100 Subject: s3: Fix Coverity ID 2283: Uninitialized read We passed the structure including the uninitialized elements to dcerpc_winreg_OpenKey. --- 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 5f614f1a8d..6ed6f342b5 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_util.c +++ b/source3/rpc_server/spoolss/srv_spoolss_util.c @@ -3149,7 +3149,7 @@ WERROR winreg_printer_deleteform1(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, }; uint32_t num_builtin = ARRAY_SIZE(builtin_forms1); uint32_t i; WERROR result = WERR_OK; -- cgit