diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-15 10:49:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-15 11:10:42 +0100 |
commit | cc90415062c4f1c68005fc3ff2958c189a88d949 (patch) | |
tree | e91eb32a5825d12007250ea568e97e24d03034da | |
parent | 4f34955e2c68809cd598f0626cb1a03ba78b1059 (diff) | |
download | samba-cc90415062c4f1c68005fc3ff2958c189a88d949.tar.gz samba-cc90415062c4f1c68005fc3ff2958c189a88d949.tar.bz2 samba-cc90415062c4f1c68005fc3ff2958c189a88d949.zip |
s3: Fix Coverity ID 2289: Uninitialized read
We passed the structure including the uninitialized elements to
dcerpc_winreg_OpenKey.
-rw-r--r-- | source3/rpcclient/cmd_winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_winreg.c b/source3/rpcclient/cmd_winreg.c index 2ba2d6d5e1..e9508e37ab 100644 --- a/source3/rpcclient/cmd_winreg.c +++ b/source3/rpcclient/cmd_winreg.c @@ -156,7 +156,7 @@ static WERROR cmd_winreg_querymultiplevalues_ex(struct rpc_pipe_client *cli, NTSTATUS status; WERROR werr; struct policy_handle handle, key_handle; - struct winreg_String key_name; + struct winreg_String key_name = { 0, }; struct dcerpc_binding_handle *b = cli->binding_handle; struct QueryMultipleValue *values_in, *values_out; |