Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
me finds malloc within macro, me killkill it
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Nov 2004 15:39:42 +0000 (15:39 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 30 Nov 2004 15:39:42 +0000 (15:39 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@531 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/gras/process.h

index ded4ad7..272c4d2 100644 (file)
@@ -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