dovecot-2.0: doveadm quota: Removed unused search_args.

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 13 20:11:42 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4a67c3a3ec6f
changeset: 12108:4a67c3a3ec6f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 13 18:11:37 2010 +0100
description:
doveadm quota: Removed unused search_args.
This fixes a crash when used with doveadm_expire plugin.

diffstat:

 src/plugins/quota/doveadm-quota.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r babeebf041c4 -r 4a67c3a3ec6f src/plugins/quota/doveadm-quota.c
--- a/src/plugins/quota/doveadm-quota.c	Mon Sep 13 16:59:45 2010 +0100
+++ b/src/plugins/quota/doveadm-quota.c	Mon Sep 13 18:11:37 2010 +0100
@@ -53,7 +53,7 @@
 		cmd_quota_get_root(*root);
 }
 
-static void cmd_quota_get_init(struct doveadm_mail_cmd_context *ctx,
+static void cmd_quota_get_init(struct doveadm_mail_cmd_context *ctx ATTR_UNUSED,
 			       const char *const args[] ATTR_UNUSED)
 {
 	doveadm_print_header("root", "Quota name", 0);
@@ -64,8 +64,6 @@
 			     DOVEADM_PRINT_HEADER_FLAG_RIGHT_JUSTIFY);
 	doveadm_print_header("percent", "%",
 			     DOVEADM_PRINT_HEADER_FLAG_RIGHT_JUSTIFY);
-
-	ctx->search_args = doveadm_mail_build_search_args(args);
 }
 
 static struct doveadm_mail_cmd_context *


More information about the dovecot-cvs mailing list