1
1

Gracefully handle NULL strings when calling orte_show_help for preventing usage

of more than one of the btl_openib_if_include, btl_openib_if_exclude,
btl_openib_ipaddr_include, or btl_openib_ipaddr_exclude MCA parameters.

This commit was SVN r20053.
Этот коммит содержится в:
Jon Mason 2008-12-02 23:17:46 +00:00
родитель 91b26eba67
Коммит 54b4e9901c

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

@ -2222,10 +2222,15 @@ btl_openib_component_init(int *num_btl_modules,
if (list_count > 1) {
orte_show_help("help-mpi-btl-openib.txt",
"specified include and exclude", true,
mca_btl_openib_component.if_include,
mca_btl_openib_component.if_exclude,
mca_btl_openib_component.ipaddr_include,
mca_btl_openib_component.ipaddr_exclude, NULL);
NULL == mca_btl_openib_component.if_include ?
"<not specified>" : mca_btl_openib_component.if_include,
NULL == mca_btl_openib_component.if_exclude ?
"<not specified>" : mca_btl_openib_component.if_exclude,
NULL == mca_btl_openib_component.ipaddr_include ?
"<not specified>" :mca_btl_openib_component.ipaddr_include,
NULL == mca_btl_openib_component.ipaddr_exclude ?
"<not specified>" :mca_btl_openib_component.ipaddr_exclude,
NULL);
goto no_btls;
} else if (NULL != mca_btl_openib_component.if_include) {
mca_btl_openib_component.if_include_list =