diff --git a/orte/mca/odls/alps/odls_alps_module.c b/orte/mca/odls/alps/odls_alps_module.c index 0892244235..9d17521b44 100644 --- a/orte/mca/odls/alps/odls_alps_module.c +++ b/orte/mca/odls/alps/odls_alps_module.c @@ -434,7 +434,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd) "orted", cd->wdir, orte_process_info.nodename, - cd->child->app_rank); + (NULL == cd->child) ? 0 : cd->child->app_rank); /* Does not return */ } } diff --git a/orte/mca/odls/default/odls_default_module.c b/orte/mca/odls/default/odls_default_module.c index 581b5b7892..c95946d419 100644 --- a/orte/mca/odls/default/odls_default_module.c +++ b/orte/mca/odls/default/odls_default_module.c @@ -425,7 +425,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd) "orted", cd->wdir, orte_process_info.nodename, - cd->child->app_rank); + (NULL == cd->child) ? 0 : cd->child->app_rank); /* Does not return */ } }