From 45b643d0cfa46f1abb9a5f43cf0ff304cf6a5fea Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Sat, 23 May 2020 14:05:29 -0600 Subject: [PATCH] OFI common: set include list explicitly to NULL related to #7755 Signed-off-by: Howard Pritchard --- opal/mca/common/ofi/common_ofi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opal/mca/common/ofi/common_ofi.c b/opal/mca/common/ofi/common_ofi.c index 826aa13d96..4c3b618702 100644 --- a/opal/mca/common/ofi/common_ofi.c +++ b/opal/mca/common/ofi/common_ofi.c @@ -50,6 +50,7 @@ OPAL_DECLSPEC int opal_common_ofi_register_mca_variables(const mca_base_componen * to dereference a pointer which itself is no longer a valid address owing to having been previously dlclosed. */ opal_common_ofi.prov_include = (char **)malloc(sizeof(char *)); + *opal_common_ofi.prov_include = NULL; include_index = mca_base_var_register("opal", "opal_common", "ofi", "provider_include", "Comma-delimited list of OFI providers that are considered for use (e.g., \"psm,psm2\"; an empty value means that all providers will be considered). Mutually exclusive with mtl_ofi_provider_exclude.",