Fix a malloc/free problem when user doesn't specify a name for the universe. No impact on what George is seeing - still looking into that with Tim.
This commit was SVN r5721.
Этот коммит содержится в:
родитель
09057fe311
Коммит
a0393e9cb9
@ -42,7 +42,7 @@
|
|||||||
orte_universe_t orte_universe_info = {
|
orte_universe_t orte_universe_info = {
|
||||||
/* .init = */ false,
|
/* .init = */ false,
|
||||||
/* .path = */ NULL,
|
/* .path = */ NULL,
|
||||||
/* .name = */ "default-universe",
|
/* .name = */ NULL,
|
||||||
/* .host = */ NULL,
|
/* .host = */ NULL,
|
||||||
/* .uid = */ NULL,
|
/* .uid = */ NULL,
|
||||||
/* .persistence = */ false,
|
/* .persistence = */ false,
|
||||||
@ -100,6 +100,8 @@ int orte_univ_info(void)
|
|||||||
*/
|
*/
|
||||||
orte_universe_info.uid = strdup(orte_system_info.user);
|
orte_universe_info.uid = strdup(orte_system_info.user);
|
||||||
orte_universe_info.host = strdup(orte_system_info.nodename);
|
orte_universe_info.host = strdup(orte_system_info.nodename);
|
||||||
|
/* and the universe name to default-universe */
|
||||||
|
orte_universe_info.name = strdup("default-universe");
|
||||||
}
|
}
|
||||||
|
|
||||||
id = mca_base_param_register_int("universe", "persistence", NULL, NULL, orte_universe_info.persistence);
|
id = mca_base_param_register_int("universe", "persistence", NULL, NULL, orte_universe_info.persistence);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user