summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:09:26 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:46 +0100
commitd9a58791b0e0c65556c055fcfff970b77d893f39 (patch)
tree44fad257d91a29996f346f5208e3b8597b2301e7
parentf0d491205c75a7f5165d8b909590925ac80ca1c7 (diff)
downloadsamba-d9a58791b0e0c65556c055fcfff970b77d893f39.tar.gz
samba-d9a58791b0e0c65556c055fcfff970b77d893f39.tar.bz2
samba-d9a58791b0e0c65556c055fcfff970b77d893f39.zip
s3: Fix Coverity ID 2278: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
-rw-r--r--source3/rpc_client/cli_winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_winreg.c b/source3/rpc_client/cli_winreg.c
index 893f4b040b..5b8635f1e0 100644
--- a/source3/rpc_client/cli_winreg.c
+++ b/source3/rpc_client/cli_winreg.c
@@ -538,7 +538,7 @@ NTSTATUS dcerpc_winreg_set_binary(TALLOC_CTX *mem_ctx,
DATA_BLOB *data,
WERROR *pwerr)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
WERROR result = WERR_OK;
NTSTATUS status;