From b151744b6c748217a9d9e9ebee8e0718eda81528 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 30 Nov 2004 15:39:42 +0000 Subject: [PATCH 1/1] 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 --- include/gras/process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1