]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/append.c
Correct usage of MTIOCLRERR ioctl for clearing persistant errors
[bacula/bacula] / bacula / src / stored / append.c
index 402324fa4da84a091367f77c2d09deef69ead8fd..78c85243699fce3a848016aa43fb486c0148999d 100644 (file)
@@ -305,11 +305,10 @@ bool do_append_data(JCR *jcr)
          Dmsg0(100, _("Set ok=FALSE after write_block_to_device.\n"));
          ok = false;
       }
+      if (dev->VolCatInfo.VolCatName[0] == 0) {
+         Pmsg0(000, _("NULL Volume name. This shouldn't happen!!!\n"));
+      }
    }
-   if (dev->VolCatInfo.VolCatName[0] == 0) {
-      Pmsg0(000, _("NULL Volume name. This shouldn't happen!!!\n"));
-   }
-
 
 
    if (!ok) {