Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix network constant issues
[simgrid.git] / src / surf / surf.cpp
index f0230a0..b8f653e 100644 (file)
@@ -667,8 +667,9 @@ Resource::Resource(surf_model_t model, const char *name, xbt_dict_t props)
   : m_name(xbt_strdup(name)), m_properties(props), p_model(model), m_running(true)
 {}
 
-Resource::Resource(){
-}
+Resource::Resource()
+: m_name(NULL), m_properties(NULL), p_model(NULL)
+{}
 
 const char *Resource::getName()
 {
@@ -756,7 +757,8 @@ Action::Action(ModelPtr model, double cost, bool failed):
          m_maxDuration(NO_MAX_DURATION),
          m_cost(cost),
          p_model(model),
-         m_refcount(1)
+         m_refcount(1),
+         p_data(NULL)
 {
   #ifdef HAVE_TRACING
     p_category = NULL;