Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9051:eb748e01a42b HEAD
env-util: Minor code cleanup.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 17 May 2009 21:01:45 -0400 |
parents | c09602d2820c |
children | 843f81083d0f |
files | src/lib/env-util.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/env-util.c Sun May 17 20:34:35 2009 -0400 +++ b/src/lib/env-util.c Sun May 17 21:01:45 2009 -0400 @@ -5,15 +5,15 @@ #include <stdlib.h> -static pool_t pool = NULL; +static pool_t env_pool = NULL; void env_put(const char *env) { - if (pool == NULL) { - pool = pool_alloconly_create(MEMPOOL_GROWING"Environment", - 2048); + if (env_pool == NULL) { + env_pool = pool_alloconly_create(MEMPOOL_GROWING"Environment", + 2048); } - if (putenv(p_strdup(pool, env)) != 0) + if (putenv(p_strdup(env_pool, env)) != 0) i_fatal("putenv(%s) failed: %m", env); }