From f92154fc72bba44f8d2c54058ae749daeba22193 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 4 Oct 2007 18:03:56 +0000 Subject: [PATCH] Gah -- ompi_info doesn't setup the connect pseudo component, so it'll be NULL. Ensure to protect for this. This commit was SVN r16333. --- ompi/mca/btl/openib/btl_openib_component.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/mca/btl/openib/btl_openib_component.c b/ompi/mca/btl/openib/btl_openib_component.c index 719f5758ad..7f77167b38 100644 --- a/ompi/mca/btl/openib/btl_openib_component.c +++ b/ompi/mca/btl/openib/btl_openib_component.c @@ -177,7 +177,9 @@ int btl_openib_component_open(void) static int btl_openib_component_close(void) { /* Close down the connect pseudo component */ - ompi_btl_openib_connect.bcf_finalize(); + if (NULL != ompi_btl_openib_connect.bcf_finalize) { + ompi_btl_openib_connect.bcf_finalize(); + } ompi_btl_openib_ini_finalize(); return OMPI_SUCCESS;