]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/append.c
Remove broken run when code
[bacula/bacula] / bacula / src / stored / append.c
index 402324fa4da84a091367f77c2d09deef69ead8fd..a137788ce2c8b017fc10180d1df284e22fcf3a5f 100644 (file)
@@ -119,7 +119,7 @@ bool do_append_data(JCR *jcr)
    if (!bnet_fsend(fd_sock, OK_data)) {
       berrno be;
       Jmsg1(jcr, M_FATAL, 0, _("Network send error to FD. ERR=%s\n"),
-            be.strerror(fd_sock->b_errno));
+            be.bstrerror(fd_sock->b_errno));
       ok = false;
    }
 
@@ -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) {