svn commit: r297441 - head/sbin/restore
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Mar 31 02:01:12 UTC 2016
Author: pfg
Date: Thu Mar 31 02:01:11 2016
New Revision: 297441
URL: https://svnweb.freebsd.org/changeset/base/297441
Log:
restore(8): fix use of uninitialized value.
Prevent uninitialized use of scalar newvol when jumping to gethdr.
CID: 1006491
Modified:
head/sbin/restore/tape.c
Modified: head/sbin/restore/tape.c
==============================================================================
--- head/sbin/restore/tape.c Thu Mar 31 01:36:50 2016 (r297440)
+++ head/sbin/restore/tape.c Thu Mar 31 02:01:11 2016 (r297441)
@@ -340,6 +340,7 @@ getvol(long nextvol)
}
if (volno == 1)
return;
+ newvol = 0;
goto gethdr;
}
again:
More information about the svn-src-all
mailing list