From 9d2a83b09c6e929d8ac3330109c6d6da1eee4322 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 3 Aug 2024 19:28:37 +0200 Subject: [PATCH] [ecmascript] initialise with NULL --- src/ecmascript/ecmascript-c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecmascript/ecmascript-c.c b/src/ecmascript/ecmascript-c.c index bae39ca5a..f71f5cf50 100644 --- a/src/ecmascript/ecmascript-c.c +++ b/src/ecmascript/ecmascript-c.c @@ -509,7 +509,7 @@ void * walk_tree_query(dom_node *node, const char *selector, int depth) { dom_exception exc; - dom_node *child; + dom_node *child = NULL; void *res = NULL; 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 */ do { - dom_node *next_child; + dom_node *next_child = NULL; /* Visit node's descendents */ res = walk_tree_query(child, selector, depth);