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: _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"