From: alegrand Date: Tue, 21 Dec 2004 19:50:39 +0000 (+0000) Subject: Dude, that was baaad... ;) X-Git-Tag: v3.3~4662 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1ad493ce814e21256c030c4fa05c743c835da8a7?hp=17ccf2e27ae2bc121dcd9e2d541f7a6c02492432 Dude, that was baaad... ;) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@688 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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))