git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d30a319
)
Initialize tvc in afs_remove so that we don't call afs_PutVCache
author
Nickolai Zeldovich
<kolya@mit.edu>
Sun, 24 Mar 2002 19:08:45 +0000 (19:08 +0000)
committer
Nickolai Zeldovich
<kolya@mit.edu>
Sun, 24 Mar 2002 19:08:45 +0000 (19:08 +0000)
on stack garbage in case of some failure.
src/afs/VNOPS/afs_vnop_remove.c
patch
|
blob
|
history
diff --git
a/src/afs/VNOPS/afs_vnop_remove.c
b/src/afs/VNOPS/afs_vnop_remove.c
index
8886da3
..
f946b3d
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_remove.c
+++ b/
src/afs/VNOPS/afs_vnop_remove.c
@@
-237,6
+237,10
@@
afs_remove(OSI_VC_ARG(adp), aname, acred)
afs_Trace2(afs_iclSetp, CM_TRACE_REMOVE, ICL_TYPE_POINTER, adp,
ICL_TYPE_STRING, aname);
+#ifdef AFS_OSF_ENV
+ tvc = (struct vcache *)ndp->ni_vp; /* should never be null */
+#endif
+
/* Check if this is dynroot */
if (afs_IsDynroot(adp)) {
#ifdef AFS_OSF_ENV