summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/part/Makefile2
-rw-r--r--sbin/geom/class/part/geom_part.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/sbin/geom/class/part/Makefile b/sbin/geom/class/part/Makefile
index 3622716..8e7d0ff 100644
--- a/sbin/geom/class/part/Makefile
+++ b/sbin/geom/class/part/Makefile
@@ -6,6 +6,4 @@ CLASS= part
LDADD= -lutil
-WARNS?= 4
-
.include <bsd.lib.mk>
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c
index db3c5e9..e2a045e 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) {
OpenPOWER on IntegriCloud