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]
/
src
/
msg
/
msg_actions.c
diff --git
a/src/msg/msg_actions.c
b/src/msg/msg_actions.c
index
cacf21e
..
5809155
100644
(file)
--- a/
src/msg/msg_actions.c
+++ b/
src/msg/msg_actions.c
@@
-103,7
+103,7
@@
static const char **action_get_action(char *name)
char *evtname = NULL;
xbt_dynar_t myqueue = xbt_dict_get_or_null(action_queues, name);
char *evtname = NULL;
xbt_dynar_t myqueue = xbt_dict_get_or_null(action_queues, name);
- if (myqueue == NULL || xbt_dynar_
length(myqueue) == 0
) { // nothing stored for me. Read the file further
+ if (myqueue == NULL || xbt_dynar_
is_empty(myqueue)
) { // nothing stored for me. Read the file further
if (action_fp == NULL) { // File closed now. There's nothing more to read. I'm out of here
goto todo_done;
if (action_fp == NULL) { // File closed now. There's nothing more to read. I'm out of here
goto todo_done;