Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small fix for a uninitialized variable
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 08:52:39 +0000 (08:52 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 08:52:39 +0000 (08:52 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8239 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf_routing.c

index 6798a20..d3ec49e 100644 (file)
@@ -1861,7 +1861,7 @@ static void generic_free_extended_route(route_extended_t e_route) {
 static routing_component_t generic_as_exist(routing_component_t find_from, routing_component_t to_find) {
   xbt_dict_cursor_t cursor = NULL;
   char *key;
 static routing_component_t generic_as_exist(routing_component_t find_from, routing_component_t to_find) {
   xbt_dict_cursor_t cursor = NULL;
   char *key;
-  int found;
+  int found=0;
   routing_component_t elem;
   xbt_dict_foreach(find_from->routing_sons, cursor, key, elem) {
     if( to_find == elem || generic_as_exist(elem,to_find) ){
   routing_component_t elem;
   xbt_dict_foreach(find_from->routing_sons, cursor, key, elem) {
     if( to_find == elem || generic_as_exist(elem,to_find) ){