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
plug a memleak
[simgrid.git]
/
src
/
simgrid
/
sg_config.cpp
diff --git
a/src/simgrid/sg_config.cpp
b/src/simgrid/sg_config.cpp
index
15e6ad3
..
98142d3
100644
(file)
--- a/
src/simgrid/sg_config.cpp
+++ b/
src/simgrid/sg_config.cpp
@@
-323,9
+323,11
@@
static void _sg_cfg_cb__test_sleep(const char *name){
/* callback of the inclusion path */
static void _sg_cfg_cb__surf_path(const char *name)
{
/* callback of the inclusion path */
static void _sg_cfg_cb__surf_path(const char *name)
{
- char *path = xbt_strdup(xbt_cfg_get_string(name));
- if (path[0]) // ignore ""
+ char *path = xbt_cfg_get_string(name);
+ if (path[0]) {// ignore ""
+ path = xbt_strdup(path);
xbt_dynar_push(surf_path, &path);
xbt_dynar_push(surf_path, &path);
+ }
}
/* callback to decide if we want to use the model-checking */
}
/* callback to decide if we want to use the model-checking */