Преглед изворни кода

tm: iterate over the destination set starting from 0

Federico Cabiddu пре 10 година
родитељ
комит
380712accd
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      modules/tm/t_append_branches.c

+ 1 - 2
modules/tm/t_append_branches.c

@@ -109,9 +109,8 @@ int t_append_branches(void) {
 		set_branch_route(t->on_branch_delayed);
 		set_branch_route(t->on_branch_delayed);
 	}
 	}
 
 
-	/* not really sure that the following is needed */
+	init_branch_iterator();
 
 
-	set_branch_iterator(nr_branches-1);
 	found = 0;
 	found = 0;
 	while((current_uri.s=next_branch( &current_uri.len, &q, &dst_uri, &path,
 	while((current_uri.s=next_branch( &current_uri.len, &q, &dst_uri, &path,
 										&bflags, &si, &ruid, &instance, &location_ua))) {
 										&bflags, &si, &ruid, &instance, &location_ua))) {