Skip to content

Commit 5789078

Browse files
committed
Coverity 1472868: members cannot be NULL at this point.
Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu>
1 parent d64ca14 commit 5789078

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/dpm/dpm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ int ompi_dpm_connect_accept(ompi_communicator_t *comm, int root,
268268
/* initiate a list of participants for the connect,
269269
* starting with our own members */
270270
OBJ_CONSTRUCT(&mlist, opal_list_t);
271+
assert(NULL != members /* would mean comm had 0-sized group! */);
271272
for (i=0; NULL != members[i]; i++) {
272273
OPAL_PMIX_CONVERT_STRING_TO_PROCT(&pxproc, members[i]);
273274
plt = OBJ_NEW(opal_proclist_t);

0 commit comments

Comments
 (0)