1
1

Fix a corner case -- if the MCA param had already been registered, be

sure to look it up if NULL != current_value.

This commit was SVN r6727.
Этот коммит содержится в:
Jeff Squyres 2005-08-03 20:59:44 +00:00
родитель 2d707f34a0
Коммит ae7d85b6ca

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

@ -1061,6 +1061,17 @@ static int param_register(const char *type_name,
value in the old entry) */
OBJ_DESTRUCT(&param);
/* Finally, if we have a lookup value, look it up */
if (NULL != current_value) {
if (!param_lookup(i, current_value, NULL)) {
return OMPI_ERR_NOT_FOUND;
}
}
/* Return the new index */
return i;
}
}