hammer - Fix core dump during remote termination of mirror-stream
[dragonfly.git] / sbin / hammer / cmd_mirror.c
index eacc76a..f364479 100644 (file)
@@ -860,7 +860,8 @@ again:
            mrec->head.rec_size != sizeof(mrec->sync)) {
                fprintf(stderr, "Mirror-write %s: Did not get termination "
                                "sync record, or rec_size is wrong rt=%d\n",
-                               filesystem, mrec->head.type);
+                               filesystem,
+                               (mrec ? mrec->head.type : -1));
                exit(1);
        }