summaryrefslogtreecommitdiff
path: root/source3
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
commit329fcd4e34bc72f1303f799276c7c03df427d3cc (patch)
tree2abda6b7d7ef1a8d5989a8593de92449a6d7c4b5 /source3
parentd8068b5a4b4899eec25f3fba25c51dc109cccf37 (diff)
downloadsamba-329fcd4e34bc72f1303f799276c7c03df427d3cc.tar.gz
samba-329fcd4e34bc72f1303f799276c7c03df427d3cc.tar.bz2
samba-329fcd4e34bc72f1303f799276c7c03df427d3cc.zip
s3: Fix Coverity ID 2318: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
Diffstat (limited to 'source3')
-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 d27de5da67..0640c28845 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -851,7 +851,7 @@ static WERROR winreg_printer_write_ver(TALLOC_CTX *mem_ctx,
const char *value,
uint64_t data)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
WERROR result = WERR_OK;
NTSTATUS status;