diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-20 22:40:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-20 22:40:16 +0000 |
commit | a1fc6b50a125f21c126bde71cba554908725f810 (patch) | |
tree | 9fe9ee83a07feb5b733fb740d61dd8696bd24302 /sys | |
parent | 8c6ddaedde0a6444a426f8274dc5f193a7413e95 (diff) |
Fix an uninitialized variable.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/pegasos/pegasos/mbrdisksubr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/pegasos/pegasos/mbrdisksubr.c b/sys/arch/pegasos/pegasos/mbrdisksubr.c index 1c2bd65052f..b33adf2917a 100644 --- a/sys/arch/pegasos/pegasos/mbrdisksubr.c +++ b/sys/arch/pegasos/pegasos/mbrdisksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbrdisksubr.c,v 1.1 2003/11/13 23:00:55 drahn Exp $ */ +/* $OpenBSD: mbrdisksubr.c,v 1.2 2003/12/20 22:40:15 miod Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -57,7 +57,7 @@ try_mbr_label(dev_t dev, void (*strat)(struct buf *), struct buf *bp, { struct dos_partition *dp = osdep->dosparts, *dp2; char *cp; - int cyl, n, i, ourpart = -1; + int cyl, n = 0, i, ourpart = -1; int dospartoff = -1; /* MBR type disklabel */ @@ -67,7 +67,6 @@ try_mbr_label(dev_t dev, void (*strat)(struct buf *), struct buf *bp, daddr_t part_blkno = DOSBBSECTOR; unsigned long extoff = 0; int wander = 1, loop = 0; - n = 0; /* * Read dos partition table, follow extended partitions. |