Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initialize variable, and make gcc happy.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 12 Feb 2013 15:08:08 +0000 (16:08 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 12 Feb 2013 15:47:17 +0000 (16:47 +0100)
src/surf/surf_routing_cluster.c

index 2154448..f2d468a 100644 (file)
@@ -68,7 +68,7 @@ static void cluster_get_graph(xbt_graph_t graph, xbt_dict_t nodes,
   int table_size = xbt_dynar_length(rc->index_network_elm);
 
   sg_routing_edge_t src;
   int table_size = xbt_dynar_length(rc->index_network_elm);
 
   sg_routing_edge_t src;
-  xbt_node_t current, previous, backboneNode,routerNode;
+  xbt_node_t current, previous, backboneNode = NULL, routerNode;
   s_surf_parsing_link_up_down_t info;
 
   xbt_assert(((as_cluster_t) rc)->router,"Malformed cluster");
   s_surf_parsing_link_up_down_t info;
 
   xbt_assert(((as_cluster_t) rc)->router,"Malformed cluster");