mirror of
https://github.com/zoriya/xmlParser.git
synced 2026-06-02 10:05:36 +00:00
Solving a small bug with the getter
This commit is contained in:
@@ -40,6 +40,8 @@ node *xml_getnode(node *parent, const char *name)
|
||||
{
|
||||
node *tmp;
|
||||
|
||||
if (!my_strcmp(parent->name, name))
|
||||
return (parent);
|
||||
for (node *n = parent->child; n; n = n->next) {
|
||||
if (!my_strcmp(n->name, name))
|
||||
return (n);
|
||||
|
||||
Reference in New Issue
Block a user