From: Minh Diep Date: Wed, 4 Apr 2012 19:38:10 +0000 (-0700) Subject: LU-1283 utils: Use variable without initialize X-Git-Tag: 2.2.52~13 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=d7e70c86e276b99b923fdfff594dc038e71cc2c1;p=fs%2Flustre-release.git LU-1283 utils: Use variable without initialize We need to initialize char *savept before use it Signed-off-by: Minh Diep Change-Id: I0c8155d84e255fcf55e98f5b84a09faf8f8487ef Reviewed-on: http://review.whamcloud.com/2448 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Cliff White Reviewed-by: Andreas Dilger --- diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index efcc962..02600ae 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -370,7 +370,7 @@ int set_blockdev_tunables(char *source, int fan_out) glob_t glob_info = { 0 }; struct stat stat_buf; char *chk_major, *chk_minor; - char *savept, *dev; + char *savept = NULL, *dev; char *ret_path; char buf[PATH_MAX] = {'\0'}, path[PATH_MAX] = {'\0'}; char real_path[PATH_MAX] = {'\0'};