dovecot-2.2: Compiler warning fix
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 23 15:29:54 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/9bda1b81c16c
changeset: 14953:9bda1b81c16c
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 23 15:29:43 2012 +0300
description:
Compiler warning fix
diffstat:
src/lib/istream-concat.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r b966759dd48c -r 9bda1b81c16c src/lib/istream-concat.c
--- a/src/lib/istream-concat.c Thu Aug 23 11:54:46 2012 +0300
+++ b/src/lib/istream-concat.c Thu Aug 23 15:29:43 2012 +0300
@@ -119,7 +119,9 @@
cur_data_pos = stream->pos - (stream->skip + cstream->prev_stream_left);
data = i_stream_get_data(cstream->cur_input, &data_size);
- if (data_size <= cur_data_pos) {
+ if (data_size <= cur_data_pos)
+ ret = 0;
+ else {
/* need to read more */
i_assert(cur_data_pos == data_size);
ret = i_stream_read(cstream->cur_input);
More information about the dovecot-cvs
mailing list