From c17cc9a2bcf393b8e6af553dd14a129ec9cc9462 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 18 Sep 2021 18:16:31 +0200 Subject: Remove unecessary malloced node for child nodes (the child node item with the next item included is malloced instead) --- tests/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index 3b22f8a..4c9e93c 100644 --- a/tests/main.c +++ b/tests/main.c @@ -30,7 +30,7 @@ static void html_attributes_print(HtmlAttribute *attr) { static void html_node_print(HtmlNode *node); static void html_node_child_print(HtmlNodeChild *node_child) { while(node_child) { - html_node_print(node_child->node); + html_node_print(&node_child->node); node_child = node_child->next; } } -- cgit v1.2.3