Merge pull request #1881 from hjelmn/pmix_bug_fix
pmix/pmix2x: add missing increment in loop
Этот коммит содержится в:
Коммит
8081cf651e
@ -6,6 +6,8 @@
|
|||||||
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2016 Cisco Systems, Inc. All rights reserved.
|
||||||
|
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
|
||||||
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -435,7 +437,7 @@ int pmix2x_get(const opal_process_name_t *proc, const char *key,
|
|||||||
n=0;
|
n=0;
|
||||||
OPAL_LIST_FOREACH(ival, info, opal_value_t) {
|
OPAL_LIST_FOREACH(ival, info, opal_value_t) {
|
||||||
(void)strncpy(pinfo[n].key, ival->key, PMIX_MAX_KEYLEN);
|
(void)strncpy(pinfo[n].key, ival->key, PMIX_MAX_KEYLEN);
|
||||||
pmix2x_value_load(&pinfo[n].value, ival);
|
pmix2x_value_load(&pinfo[n++].value, ival);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pinfo = NULL;
|
pinfo = NULL;
|
||||||
@ -645,7 +647,7 @@ int pmix2x_lookup(opal_list_t *data, opal_list_t *info)
|
|||||||
PMIX_INFO_CREATE(pinfo, ninfo);
|
PMIX_INFO_CREATE(pinfo, ninfo);
|
||||||
n=0;
|
n=0;
|
||||||
OPAL_LIST_FOREACH(iptr, info, opal_value_t) {
|
OPAL_LIST_FOREACH(iptr, info, opal_value_t) {
|
||||||
(void)strncpy(pinfo[n++].key, iptr->key, PMIX_MAX_KEYLEN);
|
(void)strncpy(pinfo[n].key, iptr->key, PMIX_MAX_KEYLEN);
|
||||||
pmix2x_value_load(&pinfo[n].value, iptr);
|
pmix2x_value_load(&pinfo[n].value, iptr);
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
@ -823,7 +825,7 @@ int pmix2x_unpublish(char **keys, opal_list_t *info)
|
|||||||
PMIX_INFO_CREATE(pinfo, ninfo);
|
PMIX_INFO_CREATE(pinfo, ninfo);
|
||||||
n=0;
|
n=0;
|
||||||
OPAL_LIST_FOREACH(iptr, info, opal_value_t) {
|
OPAL_LIST_FOREACH(iptr, info, opal_value_t) {
|
||||||
(void)strncpy(pinfo[n++].key, iptr->key, PMIX_MAX_KEYLEN);
|
(void)strncpy(pinfo[n].key, iptr->key, PMIX_MAX_KEYLEN);
|
||||||
pmix2x_value_load(&pinfo[n].value, iptr);
|
pmix2x_value_load(&pinfo[n].value, iptr);
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user