From 1ad493ce814e21256c030c4fa05c743c835da8a7 Mon Sep 17 00:00:00 2001 From: alegrand Date: Tue, 21 Dec 2004 19:50:39 +0000 Subject: [PATCH 1/1] Dude, that was baaad... ;) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@688 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index b94cfb9faa..814a62c405 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -32,7 +32,7 @@ BEGIN_DECL :(NULL)) #define xbt_malloc(n) (malloc(n) ?: (xbt_die("memory allocation error"),NULL)) #define xbt_malloc0(n) (calloc( (n),1 ) ?: (xbt_die("memory allocation error"),NULL)) -#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:xbt_die("memory allocation error"),NULL) \ +#define xbt_realloc(p,s) (s? (p? (realloc(p,s)?:(xbt_die("memory allocation error"),NULL)) \ : xbt_malloc(s)) \ : (p? (free(p),NULL) \ : NULL)) -- 2.20.1