From 78b9cb7b57165294baa9f9972e94521e5b3405b5 Mon Sep 17 00:00:00 2001 From: Burkov Egor Date: Mon, 28 Jul 2025 15:11:02 +0300 Subject: [PATCH] Add more brackets --- src/utils/acmp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/acmp.cc b/src/utils/acmp.cc index 09b31f9e..c1614b3f 100644 --- a/src/utils/acmp.cc +++ b/src/utils/acmp.cc @@ -226,7 +226,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) { /* We have array with all children of the node and number of those children */ - for (i = 0; i < count - 1; i++) + for (i = 0; i < count - 1; i++) { for (j = i + 1; j < count; j++) { acmp_node_t *tmp; @@ -236,6 +236,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) { nodes[i] = nodes[j]; nodes[j] = tmp; } + } if (node->btree != NULL) { free(node->btree); node->btree = NULL;