From 8970f1a474753c218a2d6ce866f399e9b00b7c69 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 9 May 2003 20:26:17 +0000 Subject: [PATCH] Before reading an ascii label, initialize with defaults so that getasciipartspec() has a sectorisize in case it needs one. Approved by: re/jhb --- sbin/bsdlabel/bsdlabel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c index 9597fe572d49..e622d1f5b218 100644 --- a/sbin/bsdlabel/bsdlabel.c +++ b/sbin/bsdlabel/bsdlabel.c @@ -656,6 +656,7 @@ getasciilabel(FILE *f, struct disklabel *lp) int lineno = 0, errors = 0; int i; + makelabel("auto", lp); bzero(&part_set, sizeof(part_set)); bzero(&part_size_type, sizeof(part_size_type)); bzero(&part_offset_type, sizeof(part_offset_type));