File fix-testxslt-segfault.diff of Package xalan-c.3096

Description: Fix segfault in xalan (testXSLT).
Author: William Blough <devel@blough.us>
Bug-Debian: http://bugs.debian.org/718303
Forwarded: https://issues.apache.org/jira/browse/XALANC-751
Last-Update: 2013-10-14
diff --git a/c/src/xalanc/PlatformSupport/XalanLocator.hpp b/c/src/xalanc/PlatformSupport/XalanLocator.hpp
index 34a7f1e..b026a40 100644
--- a/c/src/xalanc/PlatformSupport/XalanLocator.hpp
+++ b/c/src/xalanc/PlatformSupport/XalanLocator.hpp
@@ -91,7 +91,7 @@ public:
             const XalanDOMChar*     theAlternateId = getEmptyPtr())
     {
         return theLocator == 0 ? theAlternateId : (theLocator->getSystemId() ?
-            theLocator->getPublicId() : theAlternateId);
+            theLocator->getSystemId() : theAlternateId);
     }
 
     /**
openSUSE Build Service is sponsored by