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
Use xbt_XXX_is_empty() instead of testing xbt_XXX_length() against 0.
[simgrid.git]
/
examples
/
gras
/
replay
/
xbt_workload.c
diff --git
a/examples/gras/replay/xbt_workload.c
b/examples/gras/replay/xbt_workload.c
index
f16e41f
..
ea04624
100644
(file)
--- a/
examples/gras/replay/xbt_workload.c
+++ b/
examples/gras/replay/xbt_workload.c
@@
-29,7
+29,7
@@
xbt_workload_elm_t xbt_workload_elm_parse(char *line)
xbt_dynar_t w = xbt_str_split(line, " ");
- if (xbt_dynar_
length(w) == 0
) {
+ if (xbt_dynar_
is_empty(w)
) {
free(res);
xbt_dynar_free(&w);
return NULL;