volinfo: initialize vnode details
authorMichael Meffie <mmeffie@sinenomine.net>
Thu, 16 Feb 2012 15:58:50 +0000 (10:58 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 16 Feb 2012 19:45:14 +0000 (11:45 -0800)
Clear the vnode details object. Fixes the path lookup in volscan.

Change-Id: I5176cf50bdb54529230fc72e4d1a65a20b4c14ba
Reviewed-on: http://gerrit.openafs.org/6722
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/vol/vol-info.c

index b7c7fc6..e73ac4e 100644 (file)
@@ -2177,6 +2177,7 @@ HandleVnodes(Volume * vp, VnodeClass class)
            continue;
        }
 
+       memset(&vnodeDetails, 0, sizeof(struct VnodeDetails));
        vnodeDetails.vp = vp;
        vnodeDetails.class = class;
        vnodeDetails.vnode = vnode;