Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] only ignore the call if the mark type wasn't declared
authorschnorr <Lucas.Schnorr@imag.fr>
Thu, 14 Jun 2012 10:06:36 +0000 (12:06 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Thu, 14 Jun 2012 12:37:29 +0000 (14:37 +0200)
src/instr/instr_interface.c

index f1ff539..77ebe42 100644 (file)
@@ -200,7 +200,7 @@ void TRACE_mark(const char *mark_type, const char *mark_value)
 
   //check if mark_type is already declared
   char *created = xbt_dict_get_or_null(declared_marks, mark_type);
-  if (created) return;
+  if (!created) return;
 
   XBT_DEBUG("MARK %s %s", mark_type, mark_value);
   type_t type = PJ_type_get (mark_type, PJ_type_get_root());