dovecot-1.0: Better error fix for the previous one

dovecot at dovecot.org dovecot at dovecot.org
Wed Jan 9 05:07:36 EET 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/98fcc1dbdbf4
changeset: 5511:98fcc1dbdbf4
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 09 05:07:31 2008 +0200
description:
Better error fix for the previous one

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/pop3/client.c |    4 ++--

diffs (28 lines):

diff -r 9a20335ea55c -r 98fcc1dbdbf4 src/pop3/client.c
--- a/src/pop3/client.c	Wed Jan 09 05:06:19 2008 +0200
+++ b/src/pop3/client.c	Wed Jan 09 05:07:31 2008 +0200
@@ -60,7 +60,7 @@ static bool init_mailbox(struct client *
 	buffer_t *message_sizes_buf;
 	uint32_t failed_uid = 0;
 	int i;
-	bool failed, expunged = FALSE;
+	bool failed, expunged;
 
 	message_sizes_buf = buffer_create_dynamic(default_pool, 512);
 
@@ -68,6 +68,7 @@ static bool init_mailbox(struct client *
 	search_arg.type = SEARCH_ALL;
 
 	for (i = 0; i < 3; i++) {
+		expunged = FALSE;
 		if (sync_mailbox(client->mailbox, &status) < 0) {
 			client_send_storage_error(client);
 			break;
@@ -81,7 +82,6 @@ static bool init_mailbox(struct client *
 		client->total_size = 0;
 		buffer_set_used_size(message_sizes_buf, 0);
 
-		expunged = FALSE;
 		failed = FALSE;
 		mail = mail_alloc(t, MAIL_FETCH_VIRTUAL_SIZE, NULL);
 		while (mailbox_search_next(ctx, mail) > 0) {


More information about the dovecot-cvs mailing list