summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:00:13 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:45 +0100
commit2992ccfe9cde279869091e96dffab4c8fe1631be (patch)
treec92c0084d2b6a2c7730972853a71584b44c3dddc /source3/rpc_server
parent2b26c86fe6727fafef0dd5079fd75a334ea49b63 (diff)
downloadsamba-2992ccfe9cde279869091e96dffab4c8fe1631be.tar.gz
samba-2992ccfe9cde279869091e96dffab4c8fe1631be.tar.bz2
samba-2992ccfe9cde279869091e96dffab4c8fe1631be.zip
s3: Fix Coverity ID 2284: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_DeleteValue.
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 cfbe113c49..5f614f1a8d 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -569,7 +569,7 @@ static WERROR winreg_printer_delete_subkeys(TALLOC_CTX *mem_ctx,
const char **subkeys = NULL;
uint32_t num_subkeys = 0;
struct policy_handle key_hnd;
- struct winreg_String wkey;
+ struct winreg_String wkey = { 0, };
WERROR result = WERR_OK;
NTSTATUS status;
uint32_t i;