From a6b47769ae18f3db063c245285eb03b971da88d5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 31 Mar 2010 19:14:08 +0200 Subject: [PATCH] Fix compiler warning --- bacula/src/lib/jcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/lib/jcr.c b/bacula/src/lib/jcr.c index 0367bf0671..242480f0e5 100644 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -980,7 +980,7 @@ int job_count() int count = 0; lock_jcr_chain(); - for (jcr = (JCR *)jcrs->first(); jcr = (JCR *)jcrs->next(jcr); ) { + for (jcr = (JCR *)jcrs->first(); (jcr = (JCR *)jcrs->next(jcr)); ) { if (jcr->JobId > 0) { count++; } -- 2.39.5