From 58cc16276ac054b41bf755c0843a44b4166eb6b2 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Mon, 9 Mar 2026 08:00:21 +0900 Subject: [PATCH] better --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 84c555f..0072da2 100644 --- a/src/util.c +++ b/src/util.c @@ -125,7 +125,7 @@ char* u_section_id(xl_node_t* node) { while(child != NULL) { if(child == node) break; - unique++; + if(child->type == XL_NODE_NODE && child->name != NULL && strcmp(child->name, "section") == 0) unique++; child = child->next; }