]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Valgrind warning fix
authorTimo Sirainen <tss@iki.fi>
Sun, 9 Mar 2008 00:11:19 +0000 (02:11 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 9 Mar 2008 00:11:19 +0000 (02:11 +0200)
--HG--
branch : HEAD

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

index e25c82ba9f51175357163282214f1218519df676..3c609d6bd0af35be7710b980283b5c660739e1dd 100644 (file)
@@ -998,7 +998,8 @@ static void mail_index_map_copy_header(struct mail_index_map *dest,
 {
        /* 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;