diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-16 17:17:47 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-16 18:08:51 +0100 |
commit | d8068b5a4b4899eec25f3fba25c51dc109cccf37 (patch) | |
tree | 047a8d2cdb575e7d21f13941c28a1c62f3d4e62d /source3/rpc_client | |
parent | 48c2117019845aca56de96feebcd4feb25f3e12d (diff) | |
download | samba-d8068b5a4b4899eec25f3fba25c51dc109cccf37.tar.gz samba-d8068b5a4b4899eec25f3fba25c51dc109cccf37.tar.xz 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.c | 2 |
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; |