From fd09533f8b594ddf80cf8c61c78b59d3bf86dba5 Mon Sep 17 00:00:00 2001 From: johann Date: Thu, 4 Jun 2009 21:38:30 +0000 Subject: [PATCH] Branch b_release_1_8_1 Fix following warning: mount_lustre.c: In function 'set_tunables': mount_lustre.c:338: error: 'savept' may be used uninitialized in this function --- 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 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'}; -- 1.8.3.1