You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2001/11/28 21:22:07 UTC

cvs commit: xml-xerces/c/src/internal XMLReader.cpp

knoaman     01/11/28 12:22:07

  Modified:    c/src/internal XMLReader.cpp
  Log:
  Bug 4019: fix by Phil Brown.
  
  Revision  Changes    Path
  1.29      +6 -7      xml-xerces/c/src/internal/XMLReader.cpp
  
  Index: XMLReader.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/internal/XMLReader.cpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- XMLReader.cpp	2001/07/26 19:53:02	1.28
  +++ XMLReader.cpp	2001/11/28 20:22:06	1.29
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: XMLReader.cpp,v 1.28 2001/07/26 19:53:02 tng Exp $
  + * $Id: XMLReader.cpp,v 1.29 2001/11/28 20:22:06 knoaman Exp $
    */
   
   // ---------------------------------------------------------------------------
  @@ -591,12 +591,11 @@
           // If the buffer is empty, then try to refresh
           if (fCharIndex == fCharsAvail)
           {
  -            if (!refreshCharBuffer())
  -            {
  -                // If still empty, then return false
  -                if (fCharIndex == fCharsAvail)
  -                    return false;
  -            }
  +            refreshCharBuffer();
  +
  +            // If still empty, then return false
  +            if (fCharIndex == fCharsAvail)
  +                return false;
           }
   
           chGotten = fCharBuf[fCharIndex++];
  
  
  

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