Skip to content

Commit 930d4bc

Browse files
committed
Fix singletons
Don't try to save the server URL if we are operating as a singleton since we won't have one. Signed-off-by: Ralph Castain <rhc@pmix.org>
1 parent d63c50c commit 930d4bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/pmix_client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ pmix_status_t PMIx_Init(pmix_proc_t *proc,
838838
pmix_init_result = rc;
839839

840840
/* store our server's ID */
841-
if (NULL != pmix_client_globals.myserver &&
841+
if (!pmix_client_globals.singleton &&
842+
NULL != pmix_client_globals.myserver &&
842843
NULL != pmix_client_globals.myserver->info) {
843844
kptr = PMIX_NEW(pmix_kval_t);
844845
kptr->key = strdup(PMIX_SERVER_NSPACE);

0 commit comments

Comments
 (0)