1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334814

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: