Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rewrite the token ring example
[simgrid.git] / src / xbt / mmalloc / mmalloc.c
index 1c36aa82cb0faf796f3606132caaaf790f1ac1da..ab198a97d73bdb7136e127d1f89963123a5bad27 100644 (file)
@@ -118,7 +118,7 @@ void *mmalloc(void *md, size_t size)
 //  printf("(%s) Mallocing %d bytes on %p (default: %p)...",xbt_thread_self_name(),size,mdp,__mmalloc_default_mdp);fflush(stdout);
 
   if (mdp->mmalloc_hook != NULL) {
-    return (*mdp->mmalloc_hook) (md, size);
+    return mdp->mmalloc_hook(md, size);
   }
 
   if (!(mdp->flags & MMALLOC_INITIALIZED)) {