From dead2168a2fa47d99251baa894e9c932074d1734 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 9 May 2012 10:51:54 +0200 Subject: s3: Fix Coverity ID 242726 Uninitialized scalar variable Not a functional bug, but we copy all of the "key" structure inside dcerpc_winreg_OpenKey. --- source3/utils/net_rpc_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c index 3e13b12bd8..4e2118d1c1 100644 --- a/source3/utils/net_rpc_conf.c +++ b/source3/utils/net_rpc_conf.c @@ -442,7 +442,7 @@ static NTSTATUS rpc_conf_get_share(TALLOC_CTX *mem_ctx, const char **val_names; enum winreg_Type *types; DATA_BLOB *data; - struct winreg_String key; + struct winreg_String key = { 0, }; const char **multi_s = NULL; const char *s = NULL; struct smbconf_service tmp_share; -- cgit