1
1

Move assignment out of inner loop -- only needs to be done once, and

fixes a compiler warning (and potential bug)

This commit was SVN r7540.
Этот коммит содержится в:
Jeff Squyres 2005-09-29 10:09:20 +00:00
родитель c11ba09655
Коммит fa4f7a6261

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

@ -275,10 +275,10 @@ static int distill(bool include_mode, const char *type_name,
item = next) {
next = opal_list_get_next(item);
good = true;
cli = (mca_base_component_list_item_t *) item;
component = cli->cli_component;
for (i = 0; NULL != names[i]; ++i) {
cli = (mca_base_component_list_item_t *) item;
component = cli->cli_component;
if (0 == strcmp(names[i], component->mca_component_name)) {
good = false;
break;