Fix a segv; it's possible to have an empty string parameter (""), such
that opal_argv_split() will return an empty array. So test for that case before trying to iterate through the array. This commit was SVN r8396.
Этот коммит содержится в:
родитель
e00c677da2
Коммит
b04f6bf71b
@ -170,7 +170,7 @@ static int parse_requested(int mca_param, bool *include_mode,
|
||||
if (OMPI_ERROR == mca_base_param_lookup_string(mca_param, &requested)) {
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
if (NULL == requested) {
|
||||
if (NULL == requested || 0 == strlen(requested)) {
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
*requested_component_names = opal_argv_split(requested, ',');
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user