From 6ee01d7a50bac87ffe7d1234be6a44163e1e3915 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Mon, 14 Dec 2009 16:03:16 -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 --- 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 59e68cc..a4fb608 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -1408,7 +1408,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