Date: Thu, 31 Mar 2016 02:01:11 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297441 - head/sbin/restore Message-ID: <201603310201.u2V21Bue087630@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603310201.u2V21Bue087630>