From a6325e4546b9dbbbd6a9e1a752fa3d51dda283c6 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 12 Nov 2012 02:51:29 +0000 Subject: [PATCH] Silence compiler warning This commit was SVN r27590. --- orte/mca/plm/base/plm_base_launch_support.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/orte/mca/plm/base/plm_base_launch_support.c b/orte/mca/plm/base/plm_base_launch_support.c index c41f01a523..6f3cb7d271 100644 --- a/orte/mca/plm/base/plm_base_launch_support.c +++ b/orte/mca/plm/base/plm_base_launch_support.c @@ -841,7 +841,7 @@ void orte_plm_base_daemon_failed(int st, orte_process_name_t* sender, int status, rc; int32_t n; orte_vpid_t vpid; - orte_proc_t *daemon; + orte_proc_t *daemon=NULL; /* get the daemon job, if necessary */ if (NULL == jdatorted) { @@ -875,6 +875,10 @@ void orte_plm_base_daemon_failed(int st, orte_process_name_t* sender, daemon->exit_code = status; finish: + if (NULL == daemon) { + ORTE_TERMINATE(ORTE_ERROR_DEFAULT_EXIT_CODE); + return; + } ORTE_ACTIVATE_PROC_STATE(&daemon->name, ORTE_PROC_STATE_FAILED_TO_START); }