mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
restore(8): fix use of uninitialized value.
Prevent uninitialized use of scalar newvol when jumping to gethdr. CID: 1006491
This commit is contained in:
parent
ce223fb715
commit
8f07cb00a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297441
@ -340,6 +340,7 @@ getvol(long nextvol)
|
||||
}
|
||||
if (volno == 1)
|
||||
return;
|
||||
newvol = 0;
|
||||
goto gethdr;
|
||||
}
|
||||
again:
|
||||
|
Loading…
Reference in New Issue
Block a user