From 6ac050f73f7be0d49003e4c9053826620f5e3c6c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 11:16:19 +0200 Subject: s3-lanman: Make sure count is not used uninitialized if we jump to out. Found by clang-analyzer. --- source3/smbd/lanman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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) { -- cgit