public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Bob Peterson <rpeterso@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: gfs2-utils: master - Get rid of build warning in gfs2_convert.
Date: Tue, 27 Jan 2009 15:31:00 -0000	[thread overview]
Message-ID: <20090127153116.24E7EC024D@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=157c9668abbe8bac268c929238922dce17b74f34
Commit:        157c9668abbe8bac268c929238922dce17b74f34
Parent:        91c3e9a69ed70d3d522f5b47015da5e5868722ec
Author:        Bob Peterson <rpeterso@redhat.com>
AuthorDate:    Tue Jan 27 09:29:36 2009 -0600
Committer:     Bob Peterson <rpeterso@redhat.com>
CommitterDate: Tue Jan 27 09:31:24 2009 -0600

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;


                 reply	other threads:[~2009-01-27 15:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090127153116.24E7EC024D@lists.fedorahosted.org \
    --to=rpeterso@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).