dovecot: Minor error handling fix.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 5 21:51:21 EET 2007
details: http://hg.dovecot.org/dovecot/rev/76cf2e548c6d
changeset: 6698:76cf2e548c6d
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 05 21:51:18 2007 +0200
description:
Minor error handling fix.
diffstat:
1 file changed, 3 insertions(+)
src/imap/imap-fetch.c | 3 +++
diffs (13 lines):
diff -r 0adff60c543b -r 76cf2e548c6d src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c Mon Nov 05 21:48:45 2007 +0200
+++ b/src/imap/imap-fetch.c Mon Nov 05 21:51:18 2007 +0200
@@ -195,6 +195,9 @@ static int imap_fetch_flush_buffer(struc
data = str_data(ctx->cur_str);
len = str_len(ctx->cur_str);
+ if (len == 0)
+ return 0;
+
/* there's an extra space at the end if we added any fetch items
to buffer */
if (data[len-1] == ' ') {
More information about the dovecot-cvs
mailing list