Mercurial > dovecot > core-2.2
changeset 11541:07a7d352af66 HEAD
lib-storage: Fixed handling mail_allocated hook.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Jun 2010 16:07:44 +0100 |
parents | 88b6665b48da |
children | 05700fe85e22 |
files | src/lib-storage/mail-storage-hooks.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage-hooks.c Mon Jun 14 15:55:23 2010 +0100 +++ b/src/lib-storage/mail-storage-hooks.c Mon Jun 14 16:07:44 2010 +0100 @@ -273,6 +273,7 @@ struct mail_private *pmail = (struct mail_private *)mail; struct mail_vfuncs mask, *prev_vlast = NULL; + memset(&mask, 0, sizeof(mask)); pmail->vlast = &pmail->v; array_foreach(&mail->box->storage->user->hooks, hooks) { if ((*hooks)->mail_allocated != NULL) {