From 524da299ed509f8acea192781dffcff639a0ad27 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 22 Dec 2009 13:29:12 -0500 Subject: [PATCH] b=21600 Fix unitialized pointer gcc warns that ctx may be used prior to assignment, so initialize it at declaration --- lustre/utils/mkfs_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index a4fb608..09df6c0 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -1431,7 +1431,7 @@ static int in_mntlist(char *opt, char *mntlist) static int check_mountfsoptions(char *mountopts, char *wanted_mountopts, int justwarn) { - char *ml, *mlp, *item, *ctx; + char *ml, *mlp, *item, *ctx = NULL; int errors = 0; if (!(ml = strdup(wanted_mountopts))) { -- 1.8.3.1