Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove warning about uninitilized variable.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 19 Nov 2013 10:07:44 +0000 (11:07 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 19 Nov 2013 20:44:05 +0000 (21:44 +0100)
src/surf/network.cpp

index 8fa588e..5bae319 100644 (file)
@@ -250,7 +250,7 @@ void surf_network_model_init_Vegas(void)
 
 void NetworkCm02Model::initialize()
 {
-  ActionLmmPtr comm;
+  ActionLmm comm;
 
   char *optim = xbt_cfg_get_string(_sg_cfg_set, "network/optim");
   int select =
@@ -282,7 +282,7 @@ void NetworkCm02Model::initialize()
   if (p_updateMechanism == UM_LAZY) {
        p_actionHeap = xbt_heap_new(8, NULL);
        xbt_heap_set_update_callback(p_actionHeap, surf_action_lmm_update_index_heap);
-       p_modifiedSet = xbt_swag_new(xbt_swag_offset(*comm, p_actionListHookup));
+       p_modifiedSet = xbt_swag_new(xbt_swag_offset(comm, p_actionListHookup));
        p_maxminSystem->keep_track = p_modifiedSet;
   }
 }