]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Previous commit allows removing "0" from strlist/0/key=value output.
authorTimo Sirainen <tss@iki.fi>
Tue, 22 Feb 2011 13:02:23 +0000 (15:02 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 22 Feb 2011 13:02:23 +0000 (15:02 +0200)
src/config/config-request.c

index 40afd76d14a2b3df6d01220e8ab78f0caa7e7942..38fa7a10dd3bacc7ae922176c82aa205dafa6d57 100644 (file)
@@ -286,16 +286,14 @@ settings_export(struct config_export_context *ctx,
                                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);