dovecot-1.2: env-util: Minor code cleanup.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 04:02:49 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/eb748e01a42b
changeset: 9051:eb748e01a42b
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 21:01:45 2009 -0400
description:
env-util: Minor code cleanup.

diffstat:

1 file changed, 5 insertions(+), 5 deletions(-)
src/lib/env-util.c |   10 +++++-----

diffs (24 lines):

diff -r c09602d2820c -r eb748e01a42b src/lib/env-util.c
--- 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);
 }
 


More information about the dovecot-cvs mailing list