From c963b933d965f120a796d5cd53b84bb68273a3b5 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 11 Jul 2014 10:02:18 +0200 Subject: [PATCH] [mc] Fix test on type in mc_diff --- src/mc/mc_diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mc/mc_diff.c b/src/mc/mc_diff.c index a3a0bd895b..20b0e0c597 100644 --- a/src/mc/mc_diff.c +++ b/src/mc/mc_diff.c @@ -1235,7 +1235,7 @@ int compare_heap_area(void *area1, void *area2, mc_snapshot_t snapshot1, if (type_size != -1) { if (type_size != heapinfo1->busy_block.busy_size && type_size != heapinfo2->busy_block.busy_size - && type->name != NULL && !strcmp(type->name, "struct s_smx_context")) { + && (type->name == NULL || !strcmp(type->name, "struct s_smx_context"))) { if (match_pairs) { match_equals(state, previous); xbt_dynar_free(&previous); -- 2.20.1