From bf72dbf3d5550857a8d41c910baaa722690c1eee Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 31 Jan 2011 11:04:08 -0500 Subject: [PATCH] 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 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/VNOPS/afs_vnop_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 9c75730d21..0bc1c06aa8 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -57,7 +57,7 @@ EvalMountData(char type, char *data, afs_uint32 states, afs_uint32 cellnum, struct volume *tvp = 0; struct VenusFid tfid; struct cell *tcell; - char *cpos, *volnamep; + char *cpos, *volnamep = NULL; char *buf, *endptr; afs_int32 prefetch; /* 1=>None 2=>RO 3=>BK */ afs_int32 mtptCell, assocCell = 0, hac = 0;