Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fully initialize struct, and please valgrind.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 19 Sep 2017 05:59:31 +0000 (07:59 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 19 Sep 2017 05:59:31 +0000 (07:59 +0200)
src/kernel/context/ContextThread.cpp

index a2b2165..991e60a 100644 (file)
@@ -203,7 +203,7 @@ void ThreadContext::stop()
   xbt_os_sem_release(this->end_);
 
 #ifndef WIN32
   xbt_os_sem_release(this->end_);
 
 #ifndef WIN32
-  stack_t stack;
+  stack_t stack  = {0};
   stack.ss_flags = SS_DISABLE;
   sigaltstack(&stack, nullptr);
 #endif
   stack.ss_flags = SS_DISABLE;
   sigaltstack(&stack, nullptr);
 #endif