1
1

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.
Этот коммит содержится в:
Jeff Squyres 2005-12-06 20:06:40 +00:00
родитель 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, ',');