]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail_index_view_clone() didn't properly clear all fields in the destinatio...
authorTimo Sirainen <tss@iki.fi>
Mon, 12 Sep 2011 23:07:30 +0000 (02:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 12 Sep 2011 23:07:30 +0000 (02:07 +0300)
The only caller already had it cleared though.
Patch by Mike Abbott / Apple.

src/lib-index/mail-index-view.c

index e543e994fcb52408bbadefdf19a8ea13fb0e899d..4eef25a6fc75c6187f1f88ea6d0cd882e820b02d 100644 (file)
@@ -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;