summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-16 17:19:13 +0100
committerVolker Lendecke <vl@samba.org>2011-03-16 18:08:51 +0100
commitdf79b3ba763ffb00f5de3e4084a2e639cfb48165 (patch)
treeef2d2889addf83e235569ac4c19dc61a2cb06c6f /source3/rpc_server
parent329fcd4e34bc72f1303f799276c7c03df427d3cc (diff)
downloadsamba-df79b3ba763ffb00f5de3e4084a2e639cfb48165.tar.gz
samba-df79b3ba763ffb00f5de3e4084a2e639cfb48165.tar.bz2
samba-df79b3ba763ffb00f5de3e4084a2e639cfb48165.zip
s3: Fix Coverity ID 2317: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_util.c2
1 files changed, 1 insertions, 1 deletions
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;