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
Always initialize task->category...
[simgrid.git]
/
src
/
instr
/
sd_instr.c
diff --git
a/src/instr/sd_instr.c
b/src/instr/sd_instr.c
index
7355762
..
131efe6
100644
(file)
--- a/
src/instr/sd_instr.c
+++ b/
src/instr/sd_instr.c
@@
-10,17
+10,12
@@
void TRACE_sd_task_create(SD_task_t task)
{
void TRACE_sd_task_create(SD_task_t task)
{
- if (!IS_TRACING)
- return;
task->category = NULL;
}
void TRACE_sd_task_destroy(SD_task_t task)
{
task->category = NULL;
}
void TRACE_sd_task_destroy(SD_task_t task)
{
- if (!IS_TRACING)
- return;
- if (task->category)
- xbt_free(task->category);
+ xbt_free(task->category);
}
void TRACE_sd_set_task_category(SD_task_t task, const char *category)
}
void TRACE_sd_set_task_category(SD_task_t task, const char *category)