This is an automated email from the ASF dual-hosted git repository. borisk pushed a commit to branch xerces-3.0 in repository https://gitbox.apache.org/repos/asf/xerces-c.git
commit 089223991a0594235ff93c9b65ef1e201ea988c6 Author: Boris Kolpackov <bor...@apache.org> AuthorDate: Sat Mar 28 15:57:12 2009 +0000 Return NULL instead of the last entry if not found. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/branches/xerces-3.0@759489 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/validators/schema/SchemaInfo.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xercesc/validators/schema/SchemaInfo.hpp b/src/xercesc/validators/schema/SchemaInfo.hpp index 58fcda1..29d63eb 100644 --- a/src/xercesc/validators/schema/SchemaInfo.hpp +++ b/src/xercesc/validators/schema/SchemaInfo.hpp @@ -367,10 +367,10 @@ inline SchemaInfo* SchemaInfo::getImportInfo(const unsigned int namespaceURI) co currInfo = fImportedInfoList->elementAt(i); if (currInfo->getTargetNSURI() == (int) namespaceURI) - break; + return currInfo; } - return currInfo; + return 0; } inline ValidationContext* SchemaInfo::getValidationContext() const { --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org