diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-03-31 02:01:11 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-03-31 02:01:11 +0000 |
commit | 8f07cb00a542f0d2652f0beb04f77a5873428b63 (patch) | |
tree | 8d488056a6c0aec87e26990588f9133f6a157c07 /sbin/restore | |
parent | ce223fb715c11d6a70933709a483a5c201816f7a (diff) | |
download | src-8f07cb00a542f0d2652f0beb04f77a5873428b63.tar.gz src-8f07cb00a542f0d2652f0beb04f77a5873428b63.zip |
restore(8): fix use of uninitialized value.
Prevent uninitialized use of scalar newvol when jumping to gethdr.
CID: 1006491
Notes
Notes:
svn path=/head/; revision=297441
Diffstat (limited to 'sbin/restore')
-rw-r--r-- | sbin/restore/tape.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 7a60cf4b9ab4..2f972318ddc3 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -340,6 +340,7 @@ getvol(long nextvol) } if (volno == 1) return; + newvol = 0; goto gethdr; } again: |