Skip to content

Commit 0afdd41

Browse files
authored
Merge pull request #2425 from rhc54/topic/cov
Silence Coverity warnings
2 parents 3f9185a + 77a6977 commit 0afdd41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/pmix_client_spawn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,15 @@ static void wait_cbfunc(struct pmix_peer_t *pr, pmix_ptl_hdr_t *hdr, pmix_buffer
440440
nptr = NULL;
441441
PMIX_LIST_FOREACH (ns, &pmix_globals.nspaces, pmix_namespace_t)
442442
{
443-
if (0 == strcmp(ns->nspace, n2)) {
443+
if (PMIX_CHECK_NSPACE(ns->nspace, nspace)) {
444444
nptr = ns;
445445
break;
446446
}
447447
}
448448
if (NULL == nptr) {
449449
/* shouldn't happen, but protect us */
450450
nptr = PMIX_NEW(pmix_namespace_t);
451-
nptr->nspace = strdup(n2);
451+
nptr->nspace = strdup(nspace);
452452
pmix_list_append(&pmix_globals.nspaces, &nptr->super);
453453
}
454454
/* as a client, we only handle a select set of the flags */

0 commit comments

Comments
 (0)