From c0e1cc0762eb7e49d72fdfecda168e72db55c3e8 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 31 Aug 2009 20:08:53 -0400 Subject: [PATCH] Windows: uninitialized variable Ensure that the index variable used to walk the fid history of the current evaluated path is always initialized. LICENSE MIT Reviewed-on: http://gerrit.openafs.org/389 Tested-by: Asanka Herath Reviewed-by: Asanka Herath Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsd/cm_vnodeops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index 2754315fa..927b1846c 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -2038,9 +2038,10 @@ long cm_NameI(cm_scache_t *rootSCachep, clientchar_t *pathp, long flags, } if (code == 0 && linkScp != NULL) { - if (linkScp == cm_data.rootSCachep) + if (linkScp == cm_data.rootSCachep) { fid_count = 0; - else { + i = 0; + } else { for ( i=0; ifid, &fids[i]) ) { code = CM_ERROR_TOO_MANY_SYMLINKS; -- 2.39.5