Before reading an ascii label, initialize with defaults so that

getasciipartspec() has a sectorisize in case it needs one.

Approved by:	re/jhb
This commit is contained in:
Poul-Henning Kamp 2003-05-09 20:26:17 +00:00
parent b1bf1c3a98
commit 8970f1a474
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114862

View File

@ -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));