Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initialize fields at declaration, not everywhere in code
[simgrid.git] / src / surf / cpu_interface.hpp
index 590b7985191a1debe2cf7dbb4dcb452a3e8bbc1e..c74e737bbcf77f9bca78fd5d1dd43d1b2dbfeab7 100644 (file)
@@ -182,8 +182,8 @@ public:
   double m_speedScale;           /*< Percentage of CPU available according to the trace, in [O,1] */
 
   /* Note (hypervisor): */
-  lmm_constraint_t *p_constraintCore;
-  void **p_constraintCoreId;
+  lmm_constraint_t *p_constraintCore=NULL;
+  void **p_constraintCoreId=NULL;
 };
 
 /**********