We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d05ba3 commit 78b9cb7Copy full SHA for 78b9cb7
src/utils/acmp.cc
@@ -226,7 +226,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
226
227
/* We have array with all children of the node and number of those children
228
*/
229
- for (i = 0; i < count - 1; i++)
+ for (i = 0; i < count - 1; i++) {
230
for (j = i + 1; j < count; j++) {
231
acmp_node_t *tmp;
232
@@ -236,6 +236,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
236
nodes[i] = nodes[j];
237
nodes[j] = tmp;
238
}
239
+ }
240
if (node->btree != NULL) {
241
free(node->btree);
242
node->btree = NULL;
0 commit comments