summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:02:57 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:45 +0100
commitb753b0ab82ed7d806f85d1e67afa4416ee7e77dc (patch)
tree47464e18d6f69b7df9edfb453b2a2c723f5218e7 /source3/rpc_server
parent2992ccfe9cde279869091e96dffab4c8fe1631be (diff)
downloadsamba-b753b0ab82ed7d806f85d1e67afa4416ee7e77dc.tar.gz
samba-b753b0ab82ed7d806f85d1e67afa4416ee7e77dc.tar.bz2
samba-b753b0ab82ed7d806f85d1e67afa4416ee7e77dc.zip
s3: Fix Coverity ID 2283: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_OpenKey.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_util.c2
1 files changed, 1 insertions, 1 deletions
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;