From 09677d664f2a5c254549597f5b2b5203fcb0a23e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Mar 2011 10:52:49 +0100 Subject: s3: Fix Coverity ID 2288: Uninitialized read We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue. --- source3/rpc_client/cli_winreg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/rpc_client/cli_winreg.c b/source3/rpc_client/cli_winreg.c index c3f0c901f8..cf23c2a676 100644 --- a/source3/rpc_client/cli_winreg.c +++ b/source3/rpc_client/cli_winreg.c @@ -456,7 +456,7 @@ NTSTATUS dcerpc_winreg_set_expand_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; -- cgit