knoaman 2002/08/09 14:38:22 Modified: c/src/xercesc/dom/impl DOMParentNode.cpp Log: isEqualNode: - check for NULL value. - if children length is not the same -> return false. Revision Changes Path 1.6 +3 -3 xml-xerces/c/src/xercesc/dom/impl/DOMParentNode.cpp Index: DOMParentNode.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMParentNode.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DOMParentNode.cpp 27 Jun 2002 18:41:47 -0000 1.5 +++ DOMParentNode.cpp 9 Aug 2002 21:38:22 -0000 1.6 @@ -404,7 +404,7 @@ bool DOMParentNode::isEqualNode(const DOMNode* arg) { - if (castToNodeImpl(this)->isEqualNode(arg)) + if (arg && castToNodeImpl(this)->isEqualNode(arg)) { DOMNode *kid, *argKid; for (kid = fFirstChild, argKid = arg->getFirstChild(); @@ -414,7 +414,7 @@ if (!kid->isEqualNode(argKid)) return false; } - return true; + return (kid || argKid) ? false : true; } return false; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]