From: Kern Sibbald Date: Wed, 31 Mar 2010 17:14:08 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: Release-5.2.1~1559 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6b47769ae18f3db063c245285eb03b971da88d5;p=bacula%2Fbacula Fix compiler warning --- 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++; }