Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initialize fields at declaration, for clarity
[simgrid.git] / src / surf / network_interface.hpp
index c89b7ff..ec90a5c 100644 (file)
@@ -227,8 +227,8 @@ public:
 
   /* Using this object with the public part of
     model does not make sense */
-  double m_latCurrent;
-  tmgr_trace_event_t p_latEvent;
+  double m_latCurrent = 0;
+  tmgr_trace_event_t p_latEvent = NULL;
 
   /* LMM */
   tmgr_trace_event_t p_stateEvent = NULL;