Merge pull request #45 from rouault/fix_wrong_init
[XERCESC-2235] DFAContentModel::buildDFA(): correctly zero-initialize fFollowList
diff --git a/src/xercesc/validators/common/DFAContentModel.cpp b/src/xercesc/validators/common/DFAContentModel.cpp
index 6d6b124..856f88f 100644
--- a/src/xercesc/validators/common/DFAContentModel.cpp
+++ b/src/xercesc/validators/common/DFAContentModel.cpp
@@ -682,7 +682,7 @@
(
fLeafCount * sizeof(CMStateSet*)
); //new CMStateSet*[fLeafCount];
- memset(fLeafList, 0, fLeafCount*sizeof(CMStateSet*));
+ memset(fFollowList, 0, fLeafCount*sizeof(CMStateSet*));
for (index = 0; index < fLeafCount; index++)
fFollowList[index] = new (fMemoryManager) CMStateSet(fLeafCount, fMemoryManager);