dovecot-1.1: Valgrind warning fix

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 9 02:11:23 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/8e014fd46e84
changeset: 7385:8e014fd46e84
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 09 02:11:19 2008 +0200
description:
Valgrind warning fix

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-index-map.c |    3 ++-

diffs (13 lines):

diff -r 899127b7c7e6 -r 8e014fd46e84 src/lib-index/mail-index-map.c
--- a/src/lib-index/mail-index-map.c	Sun Mar 09 01:10:14 2008 +0200
+++ b/src/lib-index/mail-index-map.c	Sun Mar 09 02:11:19 2008 +0200
@@ -998,7 +998,8 @@ static void mail_index_map_copy_header(s
 {
 	/* use src->hdr copy directly, because if we got here
 	   from syncing it has the latest changes. */
-	dest->hdr = src->hdr;
+	if (src != dest)
+		dest->hdr = src->hdr;
 	if (dest->hdr_copy_buf != NULL) {
 		if (src == dest)
 			return;


More information about the dovecot-cvs mailing list