dovecot-2.2: lib-storage: Minor code cleanup to istream-mail.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 7 10:25:57 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/6b512716b37e
changeset: 17608:6b512716b37e
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 07 13:24:22 2014 +0300
description:
lib-storage: Minor code cleanup to istream-mail.
eof=TRUE shouldn't be possible with ret=-2, so this just makes it clearer
what the code's intention is.
diffstat:
src/lib-storage/index/istream-mail.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1a38a85d952e -r 6b512716b37e src/lib-storage/index/istream-mail.c
--- a/src/lib-storage/index/istream-mail.c Mon Jul 07 13:15:33 2014 +0300
+++ b/src/lib-storage/index/istream-mail.c Mon Jul 07 13:24:22 2014 +0300
@@ -78,7 +78,7 @@
i_stream_mail_set_size_corrupted(mstream, size);
return -1;
}
- } else if (ret < 0 && stream->istream.eof) {
+ } else if (ret == -1 && stream->istream.eof) {
if (!mstream->input_has_body) {
/* trying to read past the header, but this stream
doesn't have the body */
More information about the dovecot-cvs
mailing list