From 31ff8f38e7d22402224996341c705e564e597d34 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Mar 2011 10:54:59 +0100 Subject: s3: Fix Coverity ID 2287: Uninitialized read We passed the structure including the uninitialized elements to dcerpc_winreg_CreateKey. --- source3/services/svc_winreg_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/services') diff --git a/source3/services/svc_winreg_glue.c b/source3/services/svc_winreg_glue.c index 65f0388167..dc367c2c41 100644 --- a/source3/services/svc_winreg_glue.c +++ b/source3/services/svc_winreg_glue.c @@ -197,7 +197,7 @@ bool svcctl_set_secdesc(struct messaging_context *msg_ctx, { enum winreg_CreateAction action = REG_ACTION_NONE; - struct winreg_String wkey; + struct winreg_String wkey = { 0, }; struct winreg_String wkeyclass; wkey.name = talloc_asprintf(tmp_ctx, "%s\\Security", key); -- cgit