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 590b798..c74e737 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;
 };
 
 /**********