1
1

pmix2x: fix a typo in dereg_event_hdlr()

This bug has been fixed when open-mpi/ompi@dde69e1be2 was backported into upstream pmix in pmix/master@5e5577778c
but it was not fixed in open-mpi/ompi
Этот коммит содержится в:
Gilles Gouaillardet 2016-06-22 13:45:29 +09:00
родитель af614afedf
Коммит bf133c401e

Просмотреть файл

@ -1,6 +1,8 @@
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
* Copyright (c) 2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -482,7 +484,7 @@ static void dereg_event_hdlr(int sd, short args, void *cbdata)
* the server to dereg the handler for this code */
found = false;
PMIX_LIST_FOREACH(s2, &pmix_globals.events.single_events, pmix_single_event_t) {
if (s2->code = sing->code) {
if (s2->code == sing->code) {
found = true;
break;
}