diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-15 11:04:23 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-15 11:10:45 +0100 |
commit | e68cf5e9bf10ebf24448d301047b2787838fa449 (patch) | |
tree | 49422bc68eac1d120a9241b2a727ccc965217828 | |
parent | b753b0ab82ed7d806f85d1e67afa4416ee7e77dc (diff) | |
download | samba-e68cf5e9bf10ebf24448d301047b2787838fa449.tar.gz samba-e68cf5e9bf10ebf24448d301047b2787838fa449.tar.bz2 samba-e68cf5e9bf10ebf24448d301047b2787838fa449.zip |
s3: Fix Coverity ID 2282: Uninitialized read
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
-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 cf23c2a676..3c8e4fe193 100644 --- a/source3/rpc_client/cli_winreg.c +++ b/source3/rpc_client/cli_winreg.c @@ -413,7 +413,7 @@ NTSTATUS dcerpc_winreg_set_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; |