PR/26201: Jukka Salmi: sysinst dumps core on NetBSD 2.0_BETA i386

The problem is that current_cylsize is used in the menu to select
rounding, and it is un-initialized at this point.
XXX: Must be pulled up to 2.0
This commit is contained in:
christos 2004-07-12 22:33:21 +00:00
parent 22b751b93d
commit 3a471759da

View File

@ -1,4 +1,4 @@
/* $NetBSD: bsddisklabel.c,v 1.28 2004/06/06 06:06:59 christos Exp $ */
/* $NetBSD: bsddisklabel.c,v 1.29 2004/07/12 22:33:21 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -474,6 +474,7 @@ get_ptn_sizes(int part_start, int sectors, int no_swap)
do {
set_ptn_menu(&pi);
current_cylsize = dlcylsize;
process_menu(pi.menu_no, &pi);
} while (pi.free_space < 0 || pi.free_parts < 0);