From 7f7777a5387e0b057647ac5a82a1f7c766a513d7 Mon Sep 17 00:00:00 2001 From: Pak Lui Date: Fri, 6 Jun 2008 19:55:01 +0000 Subject: [PATCH] Check for NULL in prefix_dir. This commit fixes trac:1337. This commit was SVN r18612. The following Trac tickets were found above: Ticket 1337 --> https://svn.open-mpi.org/trac/ompi/ticket/1337 --- orte/mca/odls/base/odls_base_default_fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 4173c7c8e7..8fde69216c 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -573,7 +573,7 @@ static int odls_base_default_setup_fork(orte_app_context_t *context, find PATH or LD_LIBRARY_PATH. If found, that means the prior work was clobbered, and we need to re-prefix those variables. */ - for (i = 0; NULL != context->env && NULL != context->env[i]; ++i) { + for (i = 0; NULL != context->prefix_dir && NULL != context->env && NULL != context->env[i]; ++i) { char *newenv; /* Reset PATH */