From 0fdcb6f05507fc45eb2caa46728856cf27362e8d Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 26 Oct 2009 07:43:41 +0000 Subject: [PATCH] - Initialize variable in order to avoid GCC warning and enable WARNS=6. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: bin/139970 Submitted by: Ulrich Spörlein --- sbin/geom/class/part/Makefile | 2 -- sbin/geom/class/part/geom_part.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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) {