From c7c71d2614a091ddd27d210a81eb2ade1077d4f1 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Wed, 16 Dec 2009 12:41:00 -0500 Subject: [PATCH] b=21600 Fix unitialized pointer gcc warns that ctx may be used prior to assignment, so initialize it at declaration i=rread i=johann --- 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 5d4d45f..3d18e71 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -1387,7 +1387,7 @@ int parse_opts(int argc, char *const argv[], struct mkfs_opts *mop, */ static int in_mntlist(char *opt, char *mntlist) { - char *ml, *mlp, *item, *ctx; + char *ml, *mlp, *item, *ctx = NULL; if (!(ml = strdup(mntlist))) { fprintf(stderr, "%s: out of memory\n", progname); -- 1.8.3.1