1
1

I'm confused ... Error string as well as the goto label had the same name ...

This commit was SVN r9036.
Этот коммит содержится в:
George Bosilca 2006-02-14 17:49:14 +00:00
родитель a71736ba24
Коммит 8062277bae

Просмотреть файл

@ -39,7 +39,7 @@
int orte_init_stage2(void) int orte_init_stage2(void)
{ {
int ret; int ret;
char *error; char *error_str = NULL;
/* /*
* Initialize the selected modules now that all components/name are available. * Initialize the selected modules now that all components/name are available.
@ -47,20 +47,20 @@ int orte_init_stage2(void)
if (ORTE_SUCCESS != (ret = orte_rml.init())) { if (ORTE_SUCCESS != (ret = orte_rml.init())) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);
error = "orte_rml.init"; error_str = "orte_rml.init";
goto error; goto return_error;
} }
if (ORTE_SUCCESS != (ret = orte_ns.init())) { if (ORTE_SUCCESS != (ret = orte_ns.init())) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);
error = "orte_ns.init"; error_str = "orte_ns.init";
goto error; goto return_error;
} }
if (ORTE_SUCCESS != (ret = orte_gpr.init())) { if (ORTE_SUCCESS != (ret = orte_gpr.init())) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);
error = "orte_gpr.init"; error_str = "orte_gpr.init";
goto error; goto return_error;
} }
/* /*
@ -68,24 +68,21 @@ int orte_init_stage2(void)
*/ */
if (ORTE_SUCCESS != (ret = orte_iof_base_open())) { if (ORTE_SUCCESS != (ret = orte_iof_base_open())) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);
error = "orte_iof_base_open"; error_str = "orte_iof_base_open";
goto error; goto return_error;
} }
if (ORTE_SUCCESS != (ret = orte_iof_base_select())) { if (ORTE_SUCCESS != (ret = orte_iof_base_select())) {
ORTE_ERROR_LOG(ret); ORTE_ERROR_LOG(ret);
error = "orte_iof_base_select"; error_str = "orte_iof_base_select";
goto error; goto return_error;
}
/*
* All done
*/
error:
if (ret != ORTE_SUCCESS) {
opal_show_help("help-orte-runtime",
"orte_init:startup:internal-failure",
true, error, ret);
} }
/* All done */
return ORTE_SUCCESS;
return_error:
opal_show_help("help-orte-runtime",
"orte_init:startup:internal-failure",
true, error_str, ret);
return ret; return ret;
} }