mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114862
@ -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