Skip to content

Commit b748afc

Browse files
author
Ralph Castain
committed
Fix copy/paste error
1 parent 1da5584 commit b748afc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

orte/orted/pmix/pmix_server_register_fns.c

100644100755
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,11 @@ int orte_pmix_server_register_nspace(orte_job_t *jdata)
382382
opal_list_append(pmap, &kv->super);
383383

384384
/* node ID */
385-
if (NULL != node) {
386-
kv = OBJ_NEW(opal_value_t);
387-
kv->key = strdup(OPAL_PMIX_NODEID);
388-
kv->type = OPAL_UINT32;
389-
kv->data.uint32 = node->index;
390-
opal_list_append(pmap, &kv->super);
391-
}
385+
kv = OBJ_NEW(opal_value_t);
386+
kv->key = strdup(OPAL_PMIX_NODEID);
387+
kv->type = OPAL_UINT32;
388+
kv->data.uint32 = pptr->node->index;
389+
opal_list_append(pmap, &kv->super);
392390
}
393391

394392
/* mark the job as registered */

0 commit comments

Comments
 (0)