Skip to content

Commit

Permalink
Fix singletons
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rhc54 committed May 10, 2024
1 parent d63c50c commit 930d4bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/pmix_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,8 @@ pmix_status_t PMIx_Init(pmix_proc_t *proc,
pmix_init_result = rc;

/* store our server's ID */
if (NULL != pmix_client_globals.myserver &&
if (!pmix_client_globals.singleton &&
NULL != pmix_client_globals.myserver &&
NULL != pmix_client_globals.myserver->info) {
kptr = PMIX_NEW(pmix_kval_t);
kptr->key = strdup(PMIX_SERVER_NSPACE);
Expand Down

0 comments on commit 930d4bc

Please sign in to comment.