Fix use of uninitialised variable.
I think the code it correct - but since it is only relevant when setting the default boot partition (for mbr_bootsel) to an extended partition it probably doesn't matter too often!
This commit is contained in:
parent
2134afa7ad
commit
2073f7f26c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mbr.c,v 1.72 2006/04/05 16:55:01 garbled Exp $ */
|
||||
/* $NetBSD: mbr.c,v 1.73 2006/05/12 21:22:34 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
@ -1581,7 +1581,8 @@ write_mbr(const char *disk, mbr_info_t *mbri, int convert)
|
||||
for (i = 0; i < MBR_PART_COUNT; i++) {
|
||||
if (ext->mbrb.mbrbs_nametab[i][0] == 0)
|
||||
continue;
|
||||
if (ext->sector + pstart == mbri->bootsec)
|
||||
if (ext->sector + mbrp->mbrp_start ==
|
||||
mbri->bootsec)
|
||||
mbri->mbrb.mbrbs_defkey = key;
|
||||
key++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user