From ab41f91a04562e6395567717a8938bc391c98924 Mon Sep 17 00:00:00 2001 From: schnorr Date: Wed, 15 Dec 2010 09:11:48 +0000 Subject: [PATCH] [trace] bugfix, do not try to declare a NULL category git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9243 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/instr/instr_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index 0deeafe652..263f3c6872 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -19,7 +19,7 @@ void TRACE_category(const char *category) void TRACE_category_with_color (const char *category, const char *color) { - if (!TRACE_is_active()) + if (!(TRACE_is_active() && category != NULL)) return; xbt_assert1 (instr_platform_traced(), -- 2.20.1