public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - Get rid of build warning in gfs2_convert.
@ 2009-02-19 10:32 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-02-19 10:32 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=47f32bf33ad1f7981d34df8aeadc3abfdd0272be
Commit:        47f32bf33ad1f7981d34df8aeadc3abfdd0272be
Parent:        b1ea15c55e5ac33251caf76f82dcae9ceb986aa1
Author:        Bob Peterson <rpeterso@redhat.com>
AuthorDate:    Tue Jan 27 09:29:36 2009 -0600
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Thu Feb 19 10:59:57 2009 +0100

Get rid of build warning in gfs2_convert.

---
 gfs2/convert/gfs2_convert.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gfs2/convert/gfs2_convert.c b/gfs2/convert/gfs2_convert.c
index 5e396a5..98b8c2b 100644
--- a/gfs2/convert/gfs2_convert.c
+++ b/gfs2/convert/gfs2_convert.c
@@ -242,7 +242,7 @@ struct gfs2_buffer_head *find_lbh(struct gfs2_sbd *sbp,
 {
 	struct gfs2_buffer_head *bh;
 	osi_list_t *head, *tmp;
-	struct blocklist *blk;
+	struct blocklist *blk = NULL;
 
 	head = &blist->list;
 
@@ -253,6 +253,10 @@ struct gfs2_buffer_head *find_lbh(struct gfs2_sbd *sbp,
 			return bh;
 		}
 	}
+	/* If there's no first entry, just return NULL.  Otherwise blk
+	   should be left as the last entry on the list. */
+	if (!blk)
+		return NULL;
 	/* We didn't find one that has the same offset, so let's just reuse
 	   a bh from the same height */
 	blk->lbparent = lblock;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-19 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-19 10:32 cluster: STABLE3 - Get rid of build warning in gfs2_convert Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).