diff options
author | Chris Boyle <chris@boyle.name> | 2008-05-20 16:20:29 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-05-20 16:20:29 +0200 |
commit | 040460910aa98e57cb579df1a3321021b165ab5f (patch) | |
tree | 069d4ce30ddfaab05aa6aca60b8c65de33f3bae7 | |
parent | 6c657862e0b6aa93d1682230f71e46c86555576c (diff) | |
download | dovecot-antispam-040460910aa98e57cb579df1a3321021b165ab5f.tar.gz dovecot-antispam-040460910aa98e57cb579df1a3321021b165ab5f.tar.xz dovecot-antispam-040460910aa98e57cb579df1a3321021b165ab5f.zip |
Fix compile against current dovecot 1.0 sources.
Diffstat (limited to '')
-rw-r--r-- | antispam-storage-1.0.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/antispam-storage-1.0.c b/antispam-storage-1.0.c index 0ca4e3c..1651281 100644 --- a/antispam-storage-1.0.c +++ b/antispam-storage-1.0.c @@ -281,10 +281,12 @@ antispam_mail_update_keywords(struct mail *mail, struct antispam_mail *amail = ANTISPAM_CONTEXT(pmail); int ret; unsigned int i, numkwds; - const array_t *idxkwd = mail_index_get_keywords(keywords->index); - const char *const *keyword_names = array_get(idxkwd, &numkwds); + const array_t *ARRAY_DEFINE_PTR(idxkwd,const char *); + const char *const *keyword_names; const char *const *orig_keywords; bool previous_spam_keyword, now_spam_keyword; + idxkwd = mail_index_get_keywords(keywords->index); + keyword_names = array_get(idxkwd, &numkwds); switch (modify_type) { case MODIFY_ADD: |