Skip to content

Commit 78b9cb7

Browse files
committed
Add more brackets
1 parent 5d05ba3 commit 78b9cb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/acmp.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
226226

227227
/* We have array with all children of the node and number of those children
228228
*/
229-
for (i = 0; i < count - 1; i++)
229+
for (i = 0; i < count - 1; i++) {
230230
for (j = i + 1; j < count; j++) {
231231
acmp_node_t *tmp;
232232

@@ -236,6 +236,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
236236
nodes[i] = nodes[j];
237237
nodes[j] = tmp;
238238
}
239+
}
239240
if (node->btree != NULL) {
240241
free(node->btree);
241242
node->btree = NULL;

0 commit comments

Comments
 (0)