]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/autochanger.c
Print error message if no Changer Command found.
[bacula/bacula] / bacula / src / stored / autochanger.c
index a87840e1e0224e4811c51e9112824e0daaf113f1..a1e49d18051fc73a8a6c208f00aa183038eec6c6 100644 (file)
@@ -148,6 +148,11 @@ int get_autochanger_loaded_slot(DCR *dcr)
    uint32_t timeout = dcr->device->max_changer_wait;
    int drive = dcr->dev->drive_index;
 
+   if (!dcr->device->changer_command) {
+      Jmsg(jcr, M_FATAL, 0, _("3992 Missing Changer command.\n"));
+      return -1;
+   }
+
    results = get_pool_memory(PM_MESSAGE);
    changer = get_pool_memory(PM_FNAME);