Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fixup the context build
[simgrid.git] / src / xbt / context.c
index b8b4ba5..a88d8ef 100644 (file)
@@ -63,10 +63,10 @@ static void __xbt_context_yield(xbt_context_t context)
   VOIRP(context);
   if(context) VOIRP(context->save);
   if (context) {
-    if(context->save==NULL) {
 
-      int return_value = 0;
+    int return_value = 0;
 
+    if(context->save==NULL) {
       DEBUG0("**** Yielding to somebody else ****");
       DEBUG2("Saving current_context value (%p) to context(%p)->save",current_context,context);
       context->save = current_context ;