From de98911a877eee9517b446f0c481b3b49adcc59f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 2 Jan 2012 15:34:53 +0100 Subject: [PATCH] Fix lib/sellist.c --- bacula/src/lib/sellist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.39.5