if ( void* dup_node = add_detection_option_tree(sc, node) )
{
- // FIXIT-L delete dup_node and keep original?
delete node;
root->children[i] = (detection_option_tree_node_t*)dup_node;
}
else
{
fixup_tree(root->children[i], true, 0);
- }
- trace_logf(detection_trace, TRACE_OPTION_TREE, nullptr, "%3d %3d %p %4s\n",
- 0, root->num_children, (void*)root, "root");
+ trace_logf(detection_trace, TRACE_OPTION_TREE, nullptr, "%3d %3d %p %4s\n",
+ 0, root->num_children, (void*)root, "root");
- print_option_tree(root->children[i], 0);
+ print_option_tree(root->children[i], 0);
+ }
}
return 0;