1
0
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:
Pedro F. Giffuni 2016-03-31 02:01:11 +00:00
parent ce223fb715
commit 8f07cb00a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297441

View File

@ -340,6 +340,7 @@ getvol(long nextvol)
}
if (volno == 1)
return;
newvol = 0;
goto gethdr;
}
again: