From d6696c46a605b9fda4150078737364fe78da99e1 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 22 Sep 2008 17:41:39 +0000 Subject: [PATCH] Oops -- sometimes we actually pass NULL for the error_code. Make sure to handle that nicely without segv'ing. This commit was SVN r19603. --- ompi/errhandler/errhandler_predefined.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ompi/errhandler/errhandler_predefined.c b/ompi/errhandler/errhandler_predefined.c index fe1057af7c..1a7a8d6de0 100644 --- a/ompi/errhandler/errhandler_predefined.c +++ b/ompi/errhandler/errhandler_predefined.c @@ -214,5 +214,9 @@ static void backend_fatal(char *type, struct ompi_communicator_t *comm, comm = &ompi_mpi_comm_self; } - ompi_mpi_abort(comm, *error_code, false); + if (NULL != error_code) { + ompi_mpi_abort(comm, *error_code, false); + } else { + ompi_mpi_abort(comm, 1, false); + } }