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