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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to