From: Kern Sibbald Date: Mon, 2 Jan 2012 14:34:53 +0000 (+0100) Subject: Fix lib/sellist.c X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=70d8216d46253e8196321c6b87be7564923d04eb;p=bacula%2Fbacula Fix lib/sellist.c --- diff --git a/bacula/src/lib/sellist.c b/bacula/src/lib/sellist.c index 0d64668a03..34d74df3be 100644 --- a/bacula/src/lib/sellist.c +++ b/bacula/src/lib/sellist.c @@ -1,7 +1,7 @@ /* Bacula(R) - The Network Backup Solution - Copyright (C) 2011-2011 Free Software Foundation Europe e.V. + Copyright (C) 2011-2012 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -42,13 +42,13 @@ */ int64_t sellist::next() { - if (e == NULL) { - goto bail_out; - } errmsg = NULL; if (beg <= end) { return beg++; } + if (e == NULL) { + goto bail_out; + } /* * As we walk the list, we set EOF in * the end of the next item to ease scanning,