Move variable positions

This commit is contained in:
c9s 2015-11-10 20:42:41 +08:00
parent 7e545159a0
commit 3041469007

View file

@ -447,10 +447,11 @@ route * r3_tree_match_route(const node *tree, match_entry * entry) {
}
inline edge * r3_node_find_edge_str(const node * n, const char * str, int str_len) {
char firstbyte = *str;
edge * e;
unsigned int i;
char firstbyte = *str;
for (i = n->edge_len; i--; ) {
edge *e = &n->edges[i];
e = &n->edges[i];
if (firstbyte == e->pattern[0]) {
if (strncmp(e->pattern, str, e->pattern_len) == 0) {
return &n->edges[i];