no strndup when truncating pattern
This commit is contained in:
parent
4910382090
commit
ea057921c2
1 changed files with 1 additions and 2 deletions
|
@ -421,8 +421,7 @@ node * r3_tree_insert_pathn(node *tree, char *route, int route_len, void * route
|
||||||
r3_tree_append_edge(e->child, e2);
|
r3_tree_append_edge(e->child, e2);
|
||||||
|
|
||||||
// truncate the original edge pattern
|
// truncate the original edge pattern
|
||||||
|
// e->pattern = strndup(e->pattern, dl);
|
||||||
e->pattern = strndup(e->pattern, dl);
|
|
||||||
e->pattern_len = dl;
|
e->pattern_len = dl;
|
||||||
|
|
||||||
// move n->edges to c1
|
// move n->edges to c1
|
||||||
|
|
Loading…
Reference in a new issue