Fixes to last mod

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-04-12 11:27:51 +00:00
parent dac861845f
commit d0529adc6a

View file

@ -1017,15 +1017,15 @@ static NSMapTable *nodeNames = 0;
*/ */
- (GSXMLNode*) nextElement - (GSXMLNode*) nextElement
{ {
xmlNodePtr ptr = ((xmlNodePtr)(lib))->next; xmlNodePtr ptr = (xmlNodePtr)lib;
while (ptr->next != NULL) while (ptr->next != NULL)
{ {
ptr = ptr->next;
if (ptr->type == XML_ELEMENT_NODE) if (ptr->type == XML_ELEMENT_NODE)
{ {
return [GSXMLNode nodeFrom: ptr->next]; return [GSXMLNode nodeFrom: ptr];
} }
ptr = ptr->next;
} }
return nil; return nil;
} }