You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ga...@apache.org on 2005/12/12 18:48:16 UTC

svn commit: r356299 - /xerces/c/trunk/src/xercesc/util/XMLString.cpp

Author: gareth
Date: Mon Dec 12 09:48:08 2005
New Revision: 356299

URL: http://svn.apache.org/viewcvs?rev=356299&view=rev
Log:
oops, as Alby pointed out that didnt actually solve the null problem. Now does.

Modified:
    xerces/c/trunk/src/xercesc/util/XMLString.cpp

Modified: xerces/c/trunk/src/xercesc/util/XMLString.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/XMLString.cpp?rev=356299&r1=356298&r2=356299&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLString.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLString.cpp Mon Dec 12 09:48:08 2005
@@ -1808,17 +1808,16 @@
                          , const XMLCh&           toRemove
                          ,       XMLBuffer&       dstBuffer)
 {
+    if(!srcString) return;
     const XMLCh* pszSrc = srcString;
     XMLCh c;
 
     dstBuffer.reset();
 
-    while ((c=*pszSrc)!=0) 
+    while ((c=*pszSrc++)!=0) 
     {
         if (c != toRemove) 
             dstBuffer.append(c);
-
-        ++pszSrc;
     }
 }
 



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