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

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 04:37:10 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/92be0f90a9df
changeset: 9318:92be0f90a9df
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 1ab11ad931d0 -r 92be0f90a9df 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