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

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