dovecot-1.2: Virtual mailboxes: Crashfix with more than one back...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 12 14:48:22 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/3a579de74dae
changeset: 8270:3a579de74dae
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 12 14:48:18 2008 +0300
description:
Virtual mailboxes: Crashfix with more than one backend mailbox.

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/plugins/virtual/virtual-sync.c |    8 ++++----

diffs (19 lines):

diff -r 399bf5883beb -r 3a579de74dae src/plugins/virtual/virtual-sync.c
--- a/src/plugins/virtual/virtual-sync.c	Sun Oct 12 14:47:51 2008 +0300
+++ b/src/plugins/virtual/virtual-sync.c	Sun Oct 12 14:48:18 2008 +0300
@@ -118,11 +118,11 @@ virtual_backend_box_sync_mail_unset(stru
 
 static int bbox_mailbox_id_cmp(const void *p1, const void *p2)
 {
-	const struct virtual_backend_box *b1 = p1, *b2 = p2;
-
-	if (b1->mailbox_id < b2->mailbox_id)
+	const struct virtual_backend_box *const *b1 = p1, *const *b2 = p2;
+
+	if ((*b1)->mailbox_id < (*b2)->mailbox_id)
 		return -1;
-	if (b1->mailbox_id > b2->mailbox_id)
+	if ((*b1)->mailbox_id > (*b2)->mailbox_id)
 		return 1;
 	return 0;
 }


More information about the dovecot-cvs mailing list