diff --git a/sbin/geom/class/part/Makefile b/sbin/geom/class/part/Makefile index 36227162a1f4..8e7d0ffdb4e7 100644 --- a/sbin/geom/class/part/Makefile +++ b/sbin/geom/class/part/Makefile @@ -6,6 +6,4 @@ CLASS= part LDADD= -lutil -WARNS?= 4 - .include diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c index db3c5e9515ee..e2a045e3cfae 100644 --- a/sbin/geom/class/part/geom_part.c +++ b/sbin/geom/class/part/geom_part.c @@ -192,6 +192,7 @@ find_provider(struct ggeom *gp, unsigned long long minsector) unsigned long long sector, bestsector; bestpp = NULL; + bestsector = 0; LIST_FOREACH(pp, &gp->lg_provider, lg_provider) { s = find_provcfg(pp, "start"); if (s == NULL) {