summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 11:16:19 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commit6ac050f73f7be0d49003e4c9053826620f5e3c6c (patch)
tree435b0654516c741e2a1e034f71126cc634519613 /source3/smbd
parentd11e184ed25e6a89ecfbe24673008d7adf5e770a (diff)
downloadsamba-6ac050f73f7be0d49003e4c9053826620f5e3c6c.tar.gz
samba-6ac050f73f7be0d49003e4c9053826620f5e3c6c.tar.bz2
samba-6ac050f73f7be0d49003e4c9053826620f5e3c6c.zip
s3-lanman: Make sure count is not used uninitialized if we jump to out.
Found by clang-analyzer.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 501c8a5d48..ba51c617df 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -4706,7 +4706,7 @@ static bool api_WPrintJobEnumerate(struct smbd_server_connection *sconn,
struct rpc_pipe_client *cli = NULL;
struct policy_handle handle;
struct spoolss_DevmodeContainer devmode_ctr;
- uint32_t count;
+ uint32_t count = 0;
union spoolss_JobInfo *info;
if (!str1 || !str2 || !p) {