]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl small tweak
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 27 Oct 2008 19:07:04 +0000 (19:07 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 27 Oct 2008 19:07:04 +0000 (19:07 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7919 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.4.3-update-slots.patch

index 0e019e36178c74ec8539dea9f036289c920e6664..fb29cd6a6b9948649e01cfe42d7ddfcf6f0f4517 100644 (file)
@@ -36,7 +36,7 @@ Index: src/cats/sql_update.c
 +               mr->Slot, 
 +               edit_int64(mr->StorageId, ed1), edit_int64(mr->MediaId, ed2));
 +
-+       } else if (*mr->VolumeName) {
++       } else if (mr->VolumeName[0]) { /* We have a volume name */
 +          Mmsg(mdb->cmd, "UPDATE Media SET InChanger=0 WHERE "
 +               "Slot=%d AND StorageId=%s AND VolumeName!='%s'",
 +               mr->Slot,