Author: mckusick
Date: Thu Jun  7 20:49:01 2018
New Revision: 334814
URL: https://svnweb.freebsd.org/changeset/base/334814

Log:
  Ensure proper initialization of superblock.
  
  Submitted by: Diane Bruce

Modified:
  head/sbin/dump/main.c

Modified: head/sbin/dump/main.c
==============================================================================
--- head/sbin/dump/main.c       Thu Jun  7 19:57:55 2018        (r334813)
+++ head/sbin/dump/main.c       Thu Jun  7 20:49:01 2018        (r334814)
@@ -433,6 +433,7 @@ main(int argc, char *argv[])
                msgtail("to %s\n", tape);
 
        sync();
+       sblock = NULL;
        if ((ret = sbget(diskfd, &sblock, -1)) != 0) {
                switch (ret) {
                case ENOENT:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to