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
(from parent 1:
f91373a
)
b=21600 Fix unitialized pointer
author
Brian J. Murrell
<brian@sun.com>
Tue, 22 Dec 2009 18:29:12 +0000
(13:29 -0500)
committer
Robert Read
<rread@sun.com>
Tue, 22 Dec 2009 19:10:48 +0000
(11:10 -0800)
gcc warns that ctx may be used prior to assignment, so initialize it
at declaration
lustre/utils/mkfs_lustre.c
patch
|
blob
|
history
diff --git
a/lustre/utils/mkfs_lustre.c
b/lustre/utils/mkfs_lustre.c
index
a4fb608
..
09df6c0
100644
(file)
--- a/
lustre/utils/mkfs_lustre.c
+++ b/
lustre/utils/mkfs_lustre.c
@@
-1431,7
+1431,7
@@
static int in_mntlist(char *opt, char *mntlist)
static int check_mountfsoptions(char *mountopts, char *wanted_mountopts,
int justwarn)
{
- char *ml, *mlp, *item, *ctx;
+ char *ml, *mlp, *item, *ctx
= NULL
;
int errors = 0;
if (!(ml = strdup(wanted_mountopts))) {