From d7e70c86e276b99b923fdfff594dc038e71cc2c1 Mon Sep 17 00:00:00 2001 From: Minh Diep Date: Wed, 4 Apr 2012 12:38:10 -0700 Subject: [PATCH] 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 --- lustre/utils/mount_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}; -- 1.8.3.1