summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:56:54 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commitba6fa9e5271841c30c16907d0c4ad42c3950359a (patch)
treee8b6257645c6113ea6605938c891f2b6bf963ca8 /source3/rpcclient
parent4487f26815c9812c3d0af4338406c1a45e2cc3f7 (diff)
downloadsamba-ba6fa9e5271841c30c16907d0c4ad42c3950359a.tar.gz
samba-ba6fa9e5271841c30c16907d0c4ad42c3950359a.tar.bz2
samba-ba6fa9e5271841c30c16907d0c4ad42c3950359a.zip
s3: Fix Coverity ID 242723 Uninitialized scalar variable
In an error path we are closing hnd without opening it
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 2394e22c55..b189fd7379 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -3196,7 +3196,7 @@ static WERROR cmd_spoolss_rffpcnex(struct rpc_pipe_client *cli,
{
const char *printername;
const char *clientname;
- struct policy_handle hnd;
+ struct policy_handle hnd = { 0, };
WERROR result;
NTSTATUS status;
struct spoolss_NotifyOption option;