From 8f07cb00a542f0d2652f0beb04f77a5873428b63 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 31 Mar 2016 02:01:11 +0000 Subject: [PATCH] restore(8): fix use of uninitialized value. Prevent uninitialized use of scalar newvol when jumping to gethdr. CID: 1006491 --- sbin/restore/tape.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 7a60cf4b9ab..2f972318ddc 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: