reset prefix_len = 0

This commit is contained in:
c9s 2014-06-02 16:08:46 +08:00
parent 1f21ea19a8
commit 15021b11c9

View file

@ -495,6 +495,7 @@ node * r3_tree_insert_pathl(node *tree, const char *path, int path_len, void * d
edge * r3_node_find_common_prefix(node *n, char *path, int path_len, int *prefix_len, char **errstr) {
int i = 0;
int prefix = 0;
*prefix_len = 0;
edge *e = NULL;
for(i = 0 ; i < n->edge_len ; i++ ) {
// ignore all edges with slug