From d479d981a7f200b7ffa0d1337033b50ce6ebd3ce Mon Sep 17 00:00:00 2001 From: Andrew Friedley Date: Wed, 16 Jul 2008 14:15:25 +0000 Subject: [PATCH] Missed this on my last commit regarding if include/exclude -- should now iterate from 0, not 1. This commit was SVN r18924. --- ompi/mca/btl/ofud/btl_ofud_component.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/btl/ofud/btl_ofud_component.c b/ompi/mca/btl/ofud/btl_ofud_component.c index 6bfbda4ce8..bcba4935bc 100644 --- a/ompi/mca/btl/ofud/btl_ofud_component.c +++ b/ompi/mca/btl/ofud/btl_ofud_component.c @@ -477,8 +477,8 @@ mca_btl_base_module_t** mca_btl_ud_component_init(int* num_btl_modules, port_cnt = get_port_list(ib_dev, ib_dev_attr.phys_port_cnt, allowed_ports); - /* Note ports are 1 based hence j = 1 */ - for(j = 1; j <= port_cnt; j++) { + /* Note ports are 1 based, but j goes over the array of ports */ + for(j = 0; j < port_cnt; j++) { struct ibv_port_attr ib_port_attr; k = allowed_ports[j];