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