Skip to content

Commit 3ed755b

Browse files
committed
comm: add protection for NULL info
related to #13108 Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent b79b3e9 commit 3ed755b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/communicator/comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ static int ompi_comm_idup_internal (ompi_communicator_t *comm, ompi_group_t *gro
14511451
}
14521452

14531453
// Copy info if there is one.
1454-
{
1454+
if (info != NULL) {
14551455
ompi_communicator_t *newcomp = context->newcomp;
14561456
newcomp->super.s_info = OBJ_NEW(opal_info_t);
14571457
if (info) {

0 commit comments

Comments
 (0)