dovecot-2.1: lib-index: mail_index_view_clone() didn't properly ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 16 16:59:32 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/df8bd044a47d
changeset: 13483:df8bd044a47d
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 13 02:07:30 2011 +0300
description:
lib-index: mail_index_view_clone() didn't properly clear all fields in the destination view.
The only caller already had it cleared though.
Patch by Mike Abbott / Apple.
diffstat:
src/lib-index/mail-index-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3c8b44bb1974 -r df8bd044a47d src/lib-index/mail-index-view.c
--- a/src/lib-index/mail-index-view.c Mon Sep 12 16:32:20 2011 +0300
+++ b/src/lib-index/mail-index-view.c Tue Sep 13 02:07:30 2011 +0300
@@ -9,7 +9,7 @@
void mail_index_view_clone(struct mail_index_view *dest,
const struct mail_index_view *src)
{
- memset(dest, 0, sizeof(dest));
+ memset(dest, 0, sizeof(*dest));
dest->refcount = 1;
dest->v = src->v;
dest->index = src->index;
More information about the dovecot-cvs
mailing list