]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix segfault in migration job when storage is not defined
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 1 Oct 2006 19:35:23 +0000 (19:35 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 1 Oct 2006 19:35:23 +0000 (19:35 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3527 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_run.c

index c18fce45edcb20f6e2904684708ea08f2ccf128c..21919323fc3be85a96093ab19569dd02ae217096 100644 (file)
@@ -339,7 +339,7 @@ int run_cmd(UAContext *ua, const char *cmd)
          }
          store = select_storage_resource(ua);
       }
-   } else {
+   } else if (job->storage) {
       store = (STORE *)job->storage->first();           /* use default */
    }
    if (!store) {