Browse code

tm: iterate over the destination set starting from 0

Federico Cabiddu authored on 04/09/2015 13:45:58
Showing 1 changed files
... ...
@@ -109,9 +109,8 @@ int t_append_branches(void) {
109 109
 		set_branch_route(t->on_branch_delayed);
110 110
 	}
111 111
 
112
-	/* not really sure that the following is needed */
112
+	init_branch_iterator();
113 113
 
114
-	set_branch_iterator(nr_branches-1);
115 114
 	found = 0;
116 115
 	while((current_uri.s=next_branch( &current_uri.len, &q, &dst_uri, &path,
117 116
 										&bflags, &si, &ruid, &instance, &location_ua))) {