summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:59:49 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commit4487f26815c9812c3d0af4338406c1a45e2cc3f7 (patch)
tree0b8b01b82cd2b649f125c0f07f0753ec1d0d7316
parent446791c6bf8336c5412c1aa98f0ce0f416950b94 (diff)
downloadsamba-4487f26815c9812c3d0af4338406c1a45e2cc3f7.tar.gz
samba-4487f26815c9812c3d0af4338406c1a45e2cc3f7.tar.bz2
samba-4487f26815c9812c3d0af4338406c1a45e2cc3f7.zip
s3: Fix Coverity ID 241961 Uninitialized scalar variable
-rw-r--r--source3/rpcclient/cmd_spoolss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 418ad3bcfb..2394e22c55 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -2614,6 +2614,8 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
int i, num_strings;
const char **strings = NULL;
+ num_strings = 0;
+
for (i=4; i<argc; i++) {
if (strcmp(argv[i], "NULL") == 0) {
argv[i] = "";