dovecot-2.1: i_stream_next_line(): Don't fail if stream doesn't ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 21 15:58:45 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/0fb296c11edc
changeset: 13531:0fb296c11edc
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 21 15:51:00 2011 +0300
description:
i_stream_next_line(): Don't fail if stream doesn't have write buffer, we can handle it.
diffstat:
src/lib/istream.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diffs (16 lines):
diff -r 8c3c0e01e00d -r 0fb296c11edc src/lib/istream.c
--- a/src/lib/istream.c Wed Sep 21 14:40:35 2011 +0300
+++ b/src/lib/istream.c Wed Sep 21 15:51:00 2011 +0300
@@ -349,12 +349,6 @@
return NULL;
}
- if (unlikely(_stream->w_buffer == NULL)) {
- i_error("i_stream_next_line(%s) called for unmodifiable stream",
- i_stream_get_name(stream));
- return NULL;
- }
-
pos = memchr(_stream->buffer + _stream->skip, '\n',
_stream->pos - _stream->skip);
if (pos != NULL) {
More information about the dovecot-cvs
mailing list