You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jb...@apache.org on 2001/06/06 15:49:31 UTC

cvs commit: xml-xerces/c/src/util/regx RegxParser.cpp

jberry      01/06/06 06:49:30

  Modified:    c/src/util/regx RegxParser.cpp
  Log:
  Fix two improper NULL tests
  
  Revision  Changes    Path
  1.5       +5 -2      xml-xerces/c/src/util/regx/RegxParser.cpp
  
  Index: RegxParser.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/regx/RegxParser.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RegxParser.cpp	2001/05/11 21:51:01	1.4
  +++ RegxParser.cpp	2001/06/06 13:49:27	1.5
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: RegxParser.cpp,v $
  + * Revision 1.5  2001/06/06 13:49:27  jberry
  + * Fix two improper NULL tests
  + *
    * Revision 1.4  2001/05/11 21:51:01  knoaman
    * Schema updates and fixes.
    *
  @@ -1025,7 +1028,7 @@
   			{
   				int start = fOffset;
   				tok = processBacksolidus_pP(fCharData);
  -				if (tok = 0) {
  +				if (tok == 0) {
   					ThrowXML(ParseException,XMLExcepts::Parser_Atom5);
   				}
   			}
  @@ -1211,7 +1214,7 @@
   			XMLString::subString(name, fString, fOffset, nameEnd);
               RangeToken* rangeTok = fTokenFactory->getRange(name, !positive);
   
  -            if (rangeTok = 0) {
  +            if (rangeTok == 0) {
   				ThrowXML(ParseException,XMLExcepts::Parser_CC3);
               }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org