From a733094d03d99955769b4e0b6dd017e7afa16194 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Thu, 27 Apr 2006 17:33:50 +0000 Subject: [PATCH] Retrieve default values of LBproxy and jpreg parameters from environment correctly. --- org.glite.lb.common/src/param.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.common/src/param.c b/org.glite.lb.common/src/param.c index a44e635..d0b70bd 100644 --- a/org.glite.lb.common/src/param.c +++ b/org.glite.lb.common/src/param.c @@ -167,24 +167,24 @@ int edg_wll_SetParamString(edg_wll_Context ctx,edg_wll_ContextParam param,const ctx->p_query_server_override = !strcasecmp(val,"yes"); break; case EDG_WLL_PARAM_LBPROXY_STORE_SOCK: - if (!val) val = getenv(myenv[param]); + if (!val) val = mygetenv(param); if (!val) val = "/tmp/lb_proxy_store.sock"; free(ctx->p_lbproxy_store_sock); ctx->p_lbproxy_store_sock = val ? strdup(val): NULL; break; case EDG_WLL_PARAM_LBPROXY_SERVE_SOCK: - if (!val) val = getenv(myenv[param]); + if (!val) val = mygetenv(param); if (!val) val = "/tmp/lb_proxy_serve.sock"; free(ctx->p_lbproxy_serve_sock); ctx->p_lbproxy_serve_sock = val ? strdup(val): NULL; break; case EDG_WLL_PARAM_LBPROXY_USER: - if (!val) val = getenv(myenv[param]); + if (!val) val = mygetenv(param); free(ctx->p_user_lbproxy); ctx->p_user_lbproxy = val ? strdup(val) : NULL; break; case EDG_WLL_PARAM_JPREG_TMPDIR: - if (!val) val = getenv(myenv[param]); + if (!val) val = mygetenv(param); free(ctx->jpreg_dir); ctx->jpreg_dir = val ? strdup(val) : NULL; break; -- 1.8.2.3