From: Brian J. Murrell Date: Wed, 16 Dec 2009 17:41:00 +0000 (-0500) Subject: b=21600 Fix unitialized pointer X-Git-Tag: v1_8_1_58~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c7c71d2614a091ddd27d210a81eb2ade1077d4f1;p=fs%2Flustre-release.git b=21600 Fix unitialized pointer gcc warns that ctx may be used prior to assignment, so initialize it at declaration i=rread i=johann --- 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);