# HG changeset patch # User Timo Sirainen # Date 1298379743 -7200 # Node ID e7fa2906f875823146a8439d9f8160b025ec32a5 # Parent bc77e80947c01ad78a87b7235648b26b3719d5ab config: Previous commit allows removing "0" from strlist/0/key=value output. 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);