From e3d07827887a2b24c66e024814be54a3306cc9c7 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Sat, 22 Jun 2013 12:38:32 +0000 Subject: [PATCH] Move the assignment after the bozo check. This commit was SVN r28669. --- ompi/mca/common/verbs/common_verbs_find_ports.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/common/verbs/common_verbs_find_ports.c b/ompi/mca/common/verbs/common_verbs_find_ports.c index 6f91d85a6a..b0e2696e94 100644 --- a/ompi/mca/common/verbs/common_verbs_find_ports.c +++ b/ompi/mca/common/verbs/common_verbs_find_ports.c @@ -187,12 +187,13 @@ static const char *link_layer_to_str(int link_type) static void check_sanity(char ***if_sanity_list, const char *dev_name, int port) { int i; - char tmp[BUFSIZ], **list = *if_sanity_list; + char tmp[BUFSIZ], **list; const char *compare; if (NULL == if_sanity_list || NULL == *if_sanity_list) { return; } + list = *if_sanity_list; /* A match is found if: - "dev_name" is in the list and port == -1, or