From: johann Date: Thu, 4 Jun 2009 21:40:14 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_2_01~1^2~344 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=0b82adf03ed7ea717f7c7dc5214722f1b1db768e;p=fs%2Flustre-release.git Branch b1_8 Fix following warning: mount_lustre.c: In function 'set_tunables': mount_lustre.c:338: error: 'savept' may be used uninitialized in this function --- diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index c3f7a58..59a6dc2 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -335,7 +335,7 @@ int set_tunables(char *source, int src_len) glob_t glob_info; 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'};