Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initialize variables.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Nov 2013 12:43:33 +0000 (13:43 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Nov 2013 12:52:09 +0000 (13:52 +0100)
src/surf/surf_routing_floyd.cpp
src/surf/surf_routing_none.cpp

index 6bd1969..5c97ba5 100644 (file)
@@ -26,6 +26,9 @@ void model_floyd_end(AS_t current_routing)
 }
 
 AsFloyd::AsFloyd(): AsGeneric() {
 }
 
 AsFloyd::AsFloyd(): AsGeneric() {
+  p_predecessorTable = NULL;
+  p_costTable = NULL;
+  p_linkTable = NULL;
 }
 
 AsFloyd::~AsFloyd(){
 }
 
 AsFloyd::~AsFloyd(){
index e62c778..e24f244 100644 (file)
@@ -63,6 +63,7 @@ void AsNone::parseBypassroute(sg_platf_route_cbarg_t /*e_route*/){
 AsNone::AsNone() {
   p_routingSons = xbt_dict_new_homogeneous(NULL);
   p_indexNetworkElm = xbt_dynar_new(sizeof(char*),NULL);
 AsNone::AsNone() {
   p_routingSons = xbt_dict_new_homogeneous(NULL);
   p_indexNetworkElm = xbt_dynar_new(sizeof(char*),NULL);
+  p_linkUpDownList = NULL;
 }
 
 AsNone::~AsNone() {
 }
 
 AsNone::~AsNone() {