From: Volker Lendecke Date: Wed, 9 May 2012 08:51:54 +0000 (+0200) Subject: s3: Fix Coverity ID 242725 Uninitialized scalar variable X-Git-Tag: samba-4.0.0alpha21~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa220c498166f98cfe8bd4177c443f03237e2e9e;p=thirdparty%2Fsamba.git s3: Fix Coverity ID 242725 Uninitialized scalar variable Not a functional bug, but we copy all of the "key" structure inside dcerpc_winreg_CreateKey. --- diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c index 4e2118d1c10..8c5717c519d 100644 --- a/source3/utils/net_rpc_conf.c +++ b/source3/utils/net_rpc_conf.c @@ -1084,6 +1084,7 @@ static NTSTATUS rpc_conf_drop_internal(struct net_context *c, goto error; } + ZERO_STRUCT(wkey); wkey.name = keyname; ZERO_STRUCT(wkeyclass); wkeyclass.name = "";