dovecot-2.1: sdbox: Fixed sdbox_read_header() randomly failing.

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 12 06:51:14 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/7517c752f2f5
changeset: 14126:7517c752f2f5
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 12 06:51:05 2012 +0200
description:
sdbox: Fixed sdbox_read_header() randomly failing.

diffstat:

 src/lib-storage/index/dbox-single/sdbox-storage.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e778e2c76f6f -r 7517c752f2f5 src/lib-storage/index/dbox-single/sdbox-storage.c
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c	Sun Feb 12 06:47:22 2012 +0200
+++ b/src/lib-storage/index/dbox-single/sdbox-storage.c	Sun Feb 12 06:51:05 2012 +0200
@@ -121,7 +121,7 @@
 	struct mail_index_view *view;
 	const void *data;
 	size_t data_size;
-	int ret;
+	int ret = 0;
 
 	view = mail_index_view_open(mbox->box.index);
 	mail_index_get_header_ext(view, mbox->hdr_ext_id,


More information about the dovecot-cvs mailing list