1
1

need to use get_first instead of get_begin since we don't want to execute

this loop if "nodes" is an empty list. get_first, in this loop context, 
allows us to do just that, while get_begin doesn't.

This fixes a --host problem that appeared on the Linux PPC64 build.

This commit was SVN r7703.
Этот коммит содержится в:
Josh Hursey 2005-10-11 21:33:04 +00:00
родитель 7b07dbc163
Коммит af9ccdf04a

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

@ -131,7 +131,7 @@ static int orte_ras_dash_host_allocate(orte_jobid_t jobid)
duplicate */
for (i = 0; NULL != mapped_nodes[i]; ++i) {
for (item = opal_list_get_begin(&nodes);
for (item = opal_list_get_first(&nodes);
item != opal_list_get_end(&nodes);
item = opal_list_get_next(item)) {
node = (orte_ras_node_t*) item;