>From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>

Date: Wed, 29 Sep 1993 01:54:53 +0300

To bring this error try to make two swap partitons on one disk:
one of the partitions will be not recognized.
Fix is simple: set uninitialized val variable.
This commit is contained in:
Rodney W. Grimes 1993-09-29 01:11:19 +00:00
parent 0e583a0138
commit d2f07716e2

View File

@ -1187,7 +1187,7 @@ wdformat(struct buf *bp)
int
wdsize(dev_t dev)
{
int unit = wdunit(dev), part = wdpart(dev), val;
int unit = wdunit(dev), part = wdpart(dev), val = 0;
struct disk *du;
if (unit >= _NWD) /* 31 Jul 92*/