From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Wed, 17 Jul 2013 07:30:26 +0200 Subject: [Cluster-devel] [gfs2-utils PATCH 1/7] fsck.gfs2: Fix reference to uninitialized variable In-Reply-To: <08b2ef646a21c19d0cdd1212fe8d4b4a8d7ee2b2.1373979296.git.rpeterso@redhat.com> References: <08b2ef646a21c19d0cdd1212fe8d4b4a8d7ee2b2.1373979296.git.rpeterso@redhat.com> Message-ID: <51E62BF2.5070007@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 07/16/2013 02:56 PM, Bob Peterson wrote: > This patch initializes a variable so that it no longer references > it uninitialized. > > rhbz#984085 > --- > gfs2/fsck/initialize.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gfs2/fsck/initialize.c b/gfs2/fsck/initialize.c > index b01b240..936fd5e 100644 > --- a/gfs2/fsck/initialize.c > +++ b/gfs2/fsck/initialize.c > @@ -832,7 +832,7 @@ static int get_lockproto_table(struct gfs2_sbd *sdp) > { > FILE *fp; > char line[PATH_MAX]; > - char *cluname, *end; > + char *cluname, *end = NULL; > const char *fsname, *cfgfile = "/etc/cluster/cluster.conf"; Just spotted this reference to cluster.conf ^^ remember it doesn't exist anymore in the new era. Fabio