0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[ecmascript] initialise with NULL

This commit is contained in:
Witold Filipczyk 2024-08-03 19:28:37 +02:00
parent 0b671d69f7
commit 9d2a83b09c

View File

@ -509,7 +509,7 @@ void *
walk_tree_query(dom_node *node, const char *selector, int depth) walk_tree_query(dom_node *node, const char *selector, int depth)
{ {
dom_exception exc; dom_exception exc;
dom_node *child; dom_node *child = NULL;
void *res = NULL; void *res = NULL;
dom_node_type typ; dom_node_type typ;
@ -534,7 +534,7 @@ walk_tree_query(dom_node *node, const char *selector, int depth)
/* Loop though all node's children */ /* Loop though all node's children */
do { do {
dom_node *next_child; dom_node *next_child = NULL;
/* Visit node's descendents */ /* Visit node's descendents */
res = walk_tree_query(child, selector, depth); res = walk_tree_query(child, selector, depth);