summaryrefslogtreecommitdiff
path: root/source3
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
commit446791c6bf8336c5412c1aa98f0ce0f416950b94 (patch)
treef3fecc91309755711e89562596f0177f33361f85 /source3
parentaa220c498166f98cfe8bd4177c443f03237e2e9e (diff)
downloadsamba-446791c6bf8336c5412c1aa98f0ce0f416950b94.tar.gz
samba-446791c6bf8336c5412c1aa98f0ce0f416950b94.tar.bz2
samba-446791c6bf8336c5412c1aa98f0ce0f416950b94.zip
s3: Fix Coverity ID 242724 Uninitialized scalar variable
In an error path we are closing pol without opening it
Diffstat (limited to 'source3')
-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 2733aa3265..418ad3bcfb 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2534,7 +2534,7 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
WERROR result;
NTSTATUS status;
const char *printername;
- struct policy_handle pol;
+ struct policy_handle pol = { 0, };
union spoolss_PrinterInfo info;
enum winreg_Type type;
union spoolss_PrinterData data;