1
1

Changed the for loop to a while loop so I could

release the edge without conflicting with get next.

This commit was SVN r17979.
Этот коммит содержится в:
Sharon Melamed 2008-03-26 14:45:45 +00:00
родитель 55044c3c4f
Коммит afa98f92e8

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

@ -209,10 +209,11 @@ static void delete_all_edges_conceded_to_vertex(opal_graph_t *graph, opal_graph_
/**
* for all the edges in the adjacency list
*/
for (edge_item = opal_list_get_first(aj_list->edges);
edge_item != opal_list_get_end(aj_list->edges);
edge_item = opal_list_get_next(edge_item)) {
edge_item = opal_list_get_first(aj_list->edges);
while (edge_item != opal_list_get_end(aj_list->edges)) {
edge = (opal_graph_edge_t *)edge_item;
edge_item = opal_list_get_next(edge_item);
/**
* if the edge is ended in the vertex
*/