You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jp...@locus.apache.org on 2000/07/17 21:11:23 UTC
cvs commit: xml-xerces/c/src/internal XMLScanner.cpp
jpolast 00/07/17 12:11:23
Modified: c/src/internal XMLScanner.cpp
Log:
fix for uninitialized variable gotData bug and endDocument bug.
Submitted by Jim Reitz (jereitz@home.com)
Revision Changes Path
1.19 +10 -1 xml-xerces/c/src/internal/XMLScanner.cpp
Index: XMLScanner.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- XMLScanner.cpp 2000/05/11 23:11:33 1.18
+++ XMLScanner.cpp 2000/07/17 19:11:20 1.19
@@ -56,6 +56,10 @@
/*
* $Log: XMLScanner.cpp,v $
+ * Revision 1.19 2000/07/17 19:11:20 jpolast
+ * fix for uninitialized variable gotData bug and endDocument bug.
+ * Submitted by Jim Reitz (jereitz@home.com)
+ *
* Revision 1.18 2000/05/11 23:11:33 andyh
* Add missing validity checks for stand-alone documents, character range
* and Well-formed parsed entities. Changes contributed by Sean MacRoibeaird
@@ -711,7 +715,7 @@
else
{
// Its some sort of markup
- bool gotData;
+ bool gotData = true;
switch(curToken)
{
case Token_CData :
@@ -750,7 +754,11 @@
// If we hit the end, then do the miscellaneous part
if (!gotData)
+ {
+ if (fDocHandler)
+ fDocHandler->endDocument();
scanMiscellaneous();
+ }
}
}