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:
parent
b1bf1c3a98
commit
8970f1a474
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user