dovecot-2.0: config: Previous commit allows removing "0" from st...

dovecot at dovecot.org dovecot at dovecot.org
Tue Feb 22 15:02:28 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/e7fa2906f875
changeset: 12619:e7fa2906f875
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Feb 22 15:02:23 2011 +0200
description:
config: Previous commit allows removing "0" from strlist/0/key=value output.

diffstat:

 src/config/config-request.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r bc77e80947c0 -r e7fa2906f875 src/config/config-request.c
--- a/src/config/config-request.c	Tue Feb 22 15:00:37 2011 +0200
+++ b/src/config/config-request.c	Tue Feb 22 15:02:23 2011 +0200
@@ -286,16 +286,14 @@
 				break;
 			}
 			hash_table_insert(ctx->keys, key, key);
-			ctx->callback(key, "0", CONFIG_KEY_LIST, ctx->context);
 
 			strings = array_get(val, &count);
 			i_assert(count % 2 == 0);
 			for (i = 0; i < count; i += 2) {
-				str = p_strdup_printf(ctx->pool, "%s%s%c0%c%s",
+				str = p_strdup_printf(ctx->pool, "%s%s%c%s",
 						      str_c(ctx->prefix),
 						      def->key,
 						      SETTINGS_SEPARATOR,
-						      SETTINGS_SEPARATOR,
 						      strings[i]);
 				ctx->callback(str, strings[i+1],
 					      CONFIG_KEY_NORMAL, ctx->context);


More information about the dovecot-cvs mailing list