summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4425d3b)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@531
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
* Malloc and set the data associated with the current process.
*/
* 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())