Author: rleigh
Date: Wed Jan  3 18:59:30 2018
New Revision: 1819998

URL: http://svn.apache.org/viewvc?rev=1819998&view=rev
Log:
XMLString: Don't call catString if relativePath is null

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

Modified: xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp?rev=1819998&r1=1819997&r2=1819998&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/PlatformUtils.cpp Wed Jan  3 18:59:30 2018
@@ -920,7 +920,10 @@ XMLCh* XMLPlatformUtils::weavePaths(cons
 
     XMLString::subString(tmpBuf, basePath, 0, (basePtr - basePath + 1), 
manager);
     tmpBuf[basePtr - basePath + 1] = 0;
-    XMLString::catString(tmpBuf, relativePath);
+    if (relativePath)
+    {
+        XMLString::catString(tmpBuf, relativePath);
+    }
 
     removeDotSlash(tmpBuf, manager);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to