dovecot-2.0: i_stream_next_line(): Fix for the previous optimiza...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 1 19:11:20 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/0c73829cd1f8
changeset: 12057:0c73829cd1f8
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 01 17:10:14 2010 +0100
description:
i_stream_next_line(): Fix for the previous optimization.
diffstat:
src/lib/istream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r bc5c9bd4bc7e -r 0c73829cd1f8 src/lib/istream.c
--- a/src/lib/istream.c Wed Sep 01 16:55:14 2010 +0100
+++ b/src/lib/istream.c Wed Sep 01 17:10:14 2010 +0100
@@ -351,7 +351,7 @@
pos = memchr(_stream->buffer + _stream->skip, '\n',
_stream->pos - _stream->skip);
- if (pos == NULL) {
+ if (pos != NULL) {
return i_stream_next_line_finish(_stream,
pos - _stream->buffer);
} else {
More information about the dovecot-cvs
mailing list