Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
initialize all fields of the xbt_ex_t class
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Mar 2017 07:47:38 +0000 (08:47 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Mar 2017 07:47:38 +0000 (08:47 +0100)
include/xbt/ex.hpp

index de8c43d..cde2d3e 100644 (file)
@@ -83,10 +83,10 @@ public:
   ~xbt_ex() override;
 
   /** Category (what went wrong) */
   ~xbt_ex() override;
 
   /** Category (what went wrong) */
-  xbt_errcat_t category;
+  xbt_errcat_t category = unknown_error;
 
   /** Why did it went wrong */
 
   /** Why did it went wrong */
-  int value;
+  int value = 0;
 
 };
 
 
 };