Skip to content

Commit d7a8f27

Browse files
committed
coverity CID 1472860: ci is not NULL, add an assert to help coverity see
it Signed-off-by: Aurelien Bouteiller <bouteill@icl.utk.edu>
1 parent 8490853 commit d7a8f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mca/coll/ftagree/coll_ftagree_earlyreturning.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3115,12 +3115,12 @@ static int mca_coll_ftagree_era_complete_agreement(era_identifier_t agreement_id
31153115

31163116
assert(0 != agreement_id.ERAID_FIELDS.agreementid);
31173117
ci = era_lookup_agreement_info(agreement_id);
3118+
assert(NULL != ci);
3119+
comm = ci->comm;
31183120

31193121
/** Now, it's time to remove that guy from the ongoing agreements */
31203122
opal_hash_table_remove_value_uint64(&era_ongoing_agreements, agreement_id.ERAID_KEY);
31213123

3122-
comm = ci->comm;
3123-
31243124
OBJ_RELEASE(ci); /* This will take care of the content of ci too */
31253125

31263126
ret = opal_hash_table_get_value_uint64(&era_passed_agreements,

0 commit comments

Comments
 (0)