Resolve Coverity issues
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
dc7d2f5b6a
Коммит
e25e69dc2f
@ -945,7 +945,13 @@ int pmix2x_value_unload(opal_value_t *kv,
|
||||
if (PMIX_INFO == v->data.darray->type) {
|
||||
pmix_info_t *iptr = (pmix_info_t*)v->data.darray->array;
|
||||
ival->key = strdup(iptr[n].key);
|
||||
pmix2x_value_unload(ival, &iptr[n].value);
|
||||
rc = pmix2x_value_unload(ival, &iptr[n].value);
|
||||
if (OPAL_SUCCESS != rc) {
|
||||
OPAL_LIST_RELEASE(lt);
|
||||
kv->type = OPAL_UNDEF;
|
||||
kv->data.ptr = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -544,12 +544,11 @@ static void _query(int sd, short args, void *cbdata)
|
||||
}
|
||||
|
||||
/* scan the qualifiers */
|
||||
local_only = false;
|
||||
OPAL_LIST_FOREACH(kv, &q->qualifiers, opal_value_t) {
|
||||
if (0 == strcmp(kv->key, OPAL_PMIX_QUERY_LOCAL_ONLY)) {
|
||||
if (OPAL_UNDEF == kv->type || kv->data.flag) {
|
||||
local_only = true;
|
||||
} else {
|
||||
local_only = false;
|
||||
}
|
||||
} else if (0 == strcmp(kv->key, OPAL_PMIX_PROCID)) {
|
||||
/* save this directive on our list of targets */
|
||||
|
@ -332,7 +332,9 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
|
||||
|
||||
/* location, for local procs */
|
||||
if (node == mynode) {
|
||||
if (orte_get_attribute(&pptr->attributes, ORTE_PROC_CPU_BITMAP, (void**)&tmp, OPAL_STRING)) {
|
||||
tmp = NULL;
|
||||
if (orte_get_attribute(&pptr->attributes, ORTE_PROC_CPU_BITMAP, (void**)&tmp, OPAL_STRING) &&
|
||||
NULL != tmp) {
|
||||
kv = OBJ_NEW(opal_value_t);
|
||||
kv->key = strdup(OPAL_PMIX_LOCALITY_STRING);
|
||||
kv->type = OPAL_STRING;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user