Ensure proper initialization of superblock.

Submitted by: Diane Bruce
This commit is contained in:
mckusick 2018-06-07 20:49:01 +00:00
parent 4f878c4dbd
commit 1727b537ef

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: