mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
evalmountdata null pointer before use
volnamep can be used uninitialized. fix that. Change-Id: I4aafb3bc56241b4cfc7ccd0a9cfa9e57bd97157a Reviewed-on: http://gerrit.openafs.org/3777 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
2eca7aef7b
commit
bf72dbf3d5
@ -57,7 +57,7 @@ EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum,
|
|||||||
struct volume *tvp = 0;
|
struct volume *tvp = 0;
|
||||||
struct VenusFid tfid;
|
struct VenusFid tfid;
|
||||||
struct cell *tcell;
|
struct cell *tcell;
|
||||||
char *cpos, *volnamep;
|
char *cpos, *volnamep = NULL;
|
||||||
char *buf, *endptr;
|
char *buf, *endptr;
|
||||||
afs_int32 prefetch; /* 1=>None 2=>RO 3=>BK */
|
afs_int32 prefetch; /* 1=>None 2=>RO 3=>BK */
|
||||||
afs_int32 mtptCell, assocCell = 0, hac = 0;
|
afs_int32 mtptCell, assocCell = 0, hac = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user