From 1f8cabc890b0fb19c62e22e411ed2f3ef4eeac81 Mon Sep 17 00:00:00 2001 From: yohann Date: Tue, 19 Sep 2017 16:41:33 -0700 Subject: [PATCH] mtl/ofi: Fix provider selection. This allows mtl_ofi_provider_include to work with layered providers as well. e.g. --mca mtl_ofi_provider_include "providerX;ofi_rxm" Signed-off-by: yohann --- ompi/mca/mtl/ofi/mtl_ofi_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/mtl/ofi/mtl_ofi_component.c b/ompi/mca/mtl/ofi/mtl_ofi_component.c index 9ab7c1405d..6b7058434d 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_component.c +++ b/ompi/mca/mtl/ofi/mtl_ofi_component.c @@ -231,7 +231,7 @@ is_in_list(char **list, char *item) } while (NULL != list[i]) { - if (0 == strncmp(item, list[i], strlen(item))) { + if (0 == strncmp(item, list[i], strlen(list[i]))) { return 1; } else { i++;