Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 13 Oct 2022 13:01:15 +0000 (15:01 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 13 Oct 2022 13:01:15 +0000 (15:01 +0200)
src/xbt/mmalloc/mm_legacy.c

index ee822fd..b71bdb3 100644 (file)
@@ -111,7 +111,7 @@ XBT_ATTRIB_CONSTRUCTOR(101) static void mm_legacy_constructor()
   if (mm_initialized)
     return;
   mm_initializing = 1;
-  __malloc_use_mmalloc = getenv(MC_ENV_SOCKET_FD) ? 1 : 0;
+  __malloc_use_mmalloc = getenv(MC_ENV_SOCKET_FD) != NULL;
   if (__malloc_use_mmalloc) {
     __mmalloc_current_heap = mmalloc_preinit();
   } else {