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
accept single quotes while converting the XML files
[simgrid.git]
/
src
/
xbt
/
xbt_replay.cpp
diff --git
a/src/xbt/xbt_replay.cpp
b/src/xbt/xbt_replay.cpp
index
d9e475b
..
705cd0f
100644
(file)
--- a/
src/xbt/xbt_replay.cpp
+++ b/
src/xbt/xbt_replay.cpp
@@
-148,8
+148,11
@@
int xbt_replay_action_runner(int argc, char *argv[])
{
int i;
if (xbt_action_fp) { // A unique trace file
- char **evt;
- while ((evt = action_get_action(argv[0]))) {
+ while (true) {
+ char **evt = action_get_action(argv[0]);
+ if (evt == nullptr)
+ break;
+
char* lowername = str_tolower (evt[1]);
action_fun function = (action_fun)xbt_dict_get(xbt_action_funs, lowername);
xbt_free(lowername);