No need to set d_npartitions in readdoslabel() or readgptlabel(). It has already been initialized in the MD readdisklabel() routines when they call initdisklabel().
No need to set d_npartitions in readdoslabel() or readgptlabel().
It has already been initialized in the MD readdisklabel() routines
when they call initdisklabel().

ok deraadt@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars