Mercurial > dovecot > core-2.2
changeset 12754:e7fa2906f875
config: Previous commit allows removing "0" from strlist/0/key=value output.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 22 Feb 2011 15:02:23 +0200 |
parents | bc77e80947c0 |
children | baa0314ed610 2480413a80fb |
files | src/config/config-request.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);