]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compiler warning
authorKern Sibbald <kern@sibbald.com>
Wed, 31 Mar 2010 17:14:08 +0000 (19:14 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:42 +0000 (16:49 +0200)
bacula/src/lib/jcr.c

index 0367bf0671ee45b8d4d74f6067a81eca1eeca024..242480f0e5234b52f8356b98ea97dc502f379af9 100644 (file)
@@ -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++;
       }