Solving a small bug with the getter

This commit is contained in:
AnonymusRaccoon
2019-12-09 16:59:44 +01:00
parent 48beb9a721
commit 13a13b0e2d
+2
View File
@@ -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);