Ensure proper initialization of superblock.

Submitted by: Diane Bruce
This commit is contained in:
Kirk McKusick 2018-06-07 20:49:01 +00:00
parent 12693c6c83
commit db9cb3e823

View file

@ -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: