A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kill a calloc
[simgrid.git]
/
testsuite
/
msg
/
msg_test.c
diff --git
a/testsuite/msg/msg_test.c
b/testsuite/msg/msg_test.c
index
4f192da
..
040474e
100644
(file)
--- a/
testsuite/msg/msg_test.c
+++ b/
testsuite/msg/msg_test.c
@@
-56,7
+56,7
@@
int master(int argc, char *argv[])
{ /* Task creation */
char sprintf_buffer[64];
- todo =
calloc(number_of_tasks, sizeof(m_task_t)
);
+ todo =
xbt_new0(m_task_t,number_of_tasks
);
for (i = 0; i < number_of_tasks; i++) {
sprintf(sprintf_buffer, "Task_%d", i);