From 2547f1b4193abf4a7511272e59413419d5789b6f 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 00dd74e..4f8f7c6 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -371,7 +371,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