]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-makedir-uninitialized-var-20070823
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:52:14 +0000 (17:52 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:52:14 +0000 (17:52 +0000)
scp must be initialized to NULL to prevent improper evaluation

(cherry picked from commit c675454e7f6b105d1433663a29ef2a9471f0a173)

src/WINNT/afsd/cm_vnodeops.c

index 227973fa6f8d39b5bf408869b1410c7cb2476d4f..877fdd042984dfa2c59f1af9c3d81925eeec51fa 100644 (file)
@@ -2718,7 +2718,7 @@ long cm_MakeDir(cm_scache_t *dscp, char *namep, long flags, cm_attr_t *attrp,
     cm_callbackRequest_t cbReq;
     AFSFid newAFSFid;
     cm_fid_t newFid;
-    cm_scache_t *scp;
+    cm_scache_t *scp = NULL;
     int didEnd;
     AFSStoreStatus inStatus;
     AFSFetchStatus updatedDirStatus;