fix UB
This commit is contained in:
parent
e645137476
commit
37ae57aff6
1 changed files with 1 additions and 0 deletions
|
|
@ -621,6 +621,7 @@ xl_node_t** xl_get_nodes(xl_node_t* node, const char* name){
|
|||
matches[len] = NULL;
|
||||
|
||||
child = node->first_child;
|
||||
i = 0;
|
||||
while(child != NULL){
|
||||
if(child->type == XL_NODE_NODE && child->name != NULL && strcmp(child->name, name) == 0){
|
||||
matches[i++] = child;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue