From: Timo Sirainen Date: Wed, 1 Sep 2010 16:10:14 +0000 (+0100) Subject: i_stream_next_line(): Fix for the previous optimization. X-Git-Tag: 2.0.2~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7651d283ca261015ef3c445f1f27f340f0864e2;p=thirdparty%2Fdovecot%2Fcore.git i_stream_next_line(): Fix for the previous optimization. --- diff --git a/src/lib/istream.c b/src/lib/istream.c index 982eb69b3d..21865b062e 100644 --- a/src/lib/istream.c +++ b/src/lib/istream.c @@ -351,7 +351,7 @@ char *i_stream_next_line(struct istream *stream) 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 {