From e68cf5e9bf10ebf24448d301047b2787838fa449 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Mar 2011 11:04:23 +0100 Subject: s3: Fix Coverity ID 2282: 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(-) 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; -- cgit