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:
Derrick Brashear 2011-01-31 11:04:08 -05:00
parent 2eca7aef7b
commit bf72dbf3d5

View File

@ -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;