From: mquinson Date: Tue, 30 Nov 2004 15:39:42 +0000 (+0000) Subject: me finds malloc within macro, me killkill it X-Git-Tag: v3.3~4819 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b151744b6c748217a9d9e9ebee8e0718eda81528 me finds malloc within macro, me killkill it git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@531 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/gras/process.h b/include/gras/process.h index ded4ad7290..272c4d2c1a 100644 --- a/include/gras/process.h +++ b/include/gras/process.h @@ -55,7 +55,7 @@ void gras_userdata_set(void *ud); * Malloc and set the data associated with the current process. */ -#define gras_userdata_new(type) (gras_userdata_set(malloc(sizeof(type))),gras_userdata_get()) +#define gras_userdata_new(type) (gras_userdata_set(gras_new0(type,1)),gras_userdata_get()) END_DECL