From: Brian J. Murrell Date: Tue, 22 Dec 2009 18:29:12 +0000 (-0500) Subject: b=21600 Fix unitialized pointer X-Git-Tag: 1.10.0.33~1 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=524da299ed509f8acea192781dffcff639a0ad27 b=21600 Fix unitialized pointer gcc warns that ctx may be used prior to assignment, so initialize it at declaration --- 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))) {