Skip to content

Commit 004d655

Browse files
author
Ralph Castain
authored
Merge pull request #3344 from rhc54/topic/cov
Minor coverity cleanups
2 parents 4b9840e + 1585854 commit 004d655

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orte/mca/odls/alps/odls_alps_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd)
434434
"orted",
435435
cd->wdir,
436436
orte_process_info.nodename,
437-
cd->child->app_rank);
437+
(NULL == cd->child) ? 0 : cd->child->app_rank);
438438
/* Does not return */
439439
}
440440
}

orte/mca/odls/default/odls_default_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ static int do_child(orte_odls_spawn_caddy_t *cd, int write_fd)
425425
"orted",
426426
cd->wdir,
427427
orte_process_info.nodename,
428-
cd->child->app_rank);
428+
(NULL == cd->child) ? 0 : cd->child->app_rank);
429429
/* Does not return */
430430
}
431431
}

0 commit comments

Comments
 (0)