Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345e3b3
)
Branch b1_8
author
johann
<johann>
Thu, 4 Jun 2009 21:40:14 +0000
(21:40 +0000)
committer
johann
<johann>
Thu, 4 Jun 2009 21:40:14 +0000
(21:40 +0000)
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
patch
|
blob
|
history
diff --git
a/lustre/utils/mount_lustre.c
b/lustre/utils/mount_lustre.c
index
c3f7a58
..
59a6dc2
100644
(file)
--- 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'};