Skip to content

Commit bf133c4

Browse files
committed
pmix2x: fix a typo in dereg_event_hdlr()
This bug has been fixed when dde69e1 was backported into upstream pmix in openpmix/openpmix@5e55777 but it was not fixed in open-mpi/ompi
1 parent af614af commit bf133c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/pmix/pmix2x/pmix/src/event/pmix_event_registration.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
4+
* Copyright (c) 2016 Research Organization for Information Science
5+
* and Technology (RIST). All rights reserved.
46
* $COPYRIGHT$
57
*
68
* Additional copyrights may follow
@@ -482,7 +484,7 @@ static void dereg_event_hdlr(int sd, short args, void *cbdata)
482484
* the server to dereg the handler for this code */
483485
found = false;
484486
PMIX_LIST_FOREACH(s2, &pmix_globals.events.single_events, pmix_single_event_t) {
485-
if (s2->code = sing->code) {
487+
if (s2->code == sing->code) {
486488
found = true;
487489
break;
488490
}

0 commit comments

Comments
 (0)