X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2945198502e436f29236715c0baca1efadb64480..a235f4233cb2495709ecd10086515851b9948017:/src/simgrid/sg_config.cpp diff --git a/src/simgrid/sg_config.cpp b/src/simgrid/sg_config.cpp index 15e6ad35da..f188ea5e91 100644 --- 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) { - 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); + } } /* callback to decide if we want to use the model-checking */ @@ -502,7 +504,7 @@ void sg_config_init(int *argc, char **argv) "Specify the amount of steps between checkpoints during stateful model-checking (default: 0 => stateless verification). " "If value=1, one checkpoint is saved for each step => faster verification, but huge memory consumption; higher values are good compromises between speed and memory consumption."); - xbt_cfg_register_boolean("model-check/sparse_checkpoint", "no", _mc_cfg_cb_sparse_checkpoint, "Use sparse per-page snapshots."); + xbt_cfg_register_boolean("model-check/sparse-checkpoint", "no", _mc_cfg_cb_sparse_checkpoint, "Use sparse per-page snapshots."); xbt_cfg_register_boolean("model-check/ksm", "no", _mc_cfg_cb_ksm, "Kernel same-page merging"); xbt_cfg_register_string("model-check/property","", _mc_cfg_cb_property,