From df79b3ba763ffb00f5de3e4084a2e639cfb48165 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 16 Mar 2011 17:19:13 +0100 Subject: s3: Fix Coverity ID 2317: Uninitialized read We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue. --- source3/rpc_server/spoolss/srv_spoolss_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/spoolss/srv_spoolss_util.c b/source3/rpc_server/spoolss/srv_spoolss_util.c index 0640c28845..c4e5341921 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_util.c +++ b/source3/rpc_server/spoolss/srv_spoolss_util.c @@ -776,7 +776,7 @@ static WERROR winreg_printer_write_date(TALLOC_CTX *mem_ctx, const char *value, NTTIME data) { - struct winreg_String wvalue; + struct winreg_String wvalue = { 0, }; DATA_BLOB blob; WERROR result = WERR_OK; NTSTATUS status; -- cgit