Mercurial > dovecot > core-2.2
changeset 10552:40abbeaa7a12 HEAD
expire-tool: Don't crash at startup.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 06 Jan 2010 15:25:52 +0200 |
parents | 2882650531e0 |
children | b8966b8133f2 |
files | src/plugins/expire/expire-tool.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/expire/expire-tool.c Sat Jan 02 12:01:09 2010 -0500 +++ b/src/plugins/expire/expire-tool.c Wed Jan 06 15:25:52 2010 +0200 @@ -194,6 +194,7 @@ struct expire_context ctx; struct dict *dict = NULL; const struct mail_user_settings *user_set; + struct mail_storage_service_input input; void **sets; struct dict_transaction_context *trans; struct dict_iterate_context *iter; @@ -206,6 +207,10 @@ ctx.storage_service = mail_storage_service_init(service, NULL, MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP); + memset(&input, 0, sizeof(input)); + input.module = input.service = "expire-tool"; + mail_storage_service_init_settings(ctx.storage_service, &input); + sets = master_service_settings_get_others(service); user_set = sets[0];