summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 17:17:47 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 18:08:51 +0100
commitd8068b5a4b4899eec25f3fba25c51dc109cccf37 (patch)
tree047a8d2cdb575e7d21f13941c28a1c62f3d4e62d /source3/rpc_client
parent48c2117019845aca56de96feebcd4feb25f3e12d (diff)
downloadsamba-d8068b5a4b4899eec25f3fba25c51dc109cccf37.tar.gz
samba-d8068b5a4b4899eec25f3fba25c51dc109cccf37.tar.bz2
samba-d8068b5a4b4899eec25f3fba25c51dc109cccf37.zip
s3: Fix Coverity ID 2319: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
Diffstat (limited to 'source3/rpc_client')
-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 5b8635f1e0..67f8573864 100644
--- a/source3/rpc_client/cli_winreg.c
+++ b/source3/rpc_client/cli_winreg.c
@@ -499,7 +499,7 @@ NTSTATUS dcerpc_winreg_set_multi_sz(TALLOC_CTX *mem_ctx,
const char **data,
WERROR *pwerr)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
WERROR result = WERR_OK;
NTSTATUS status;