changeset 1846:f5d7407d33a0 HEAD

reset stream_errno
author Timo Sirainen <tss@iki.fi>
date Wed, 29 Oct 2003 14:58:35 +0200
parents bd8b6ed35327
children 920307c42b17
files src/lib/istream.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/istream.c	Sun Oct 26 22:13:15 2003 +0200
+++ b/src/lib/istream.c	Wed Oct 29 14:58:35 2003 +0200
@@ -154,8 +154,10 @@
 
         i_assert(stream != NULL);
 
-	if (_stream->skip >= _stream->pos)
+	if (_stream->skip >= _stream->pos) {
+		stream->stream_errno = 0;
 		return NULL;
+	}
 
 	if (_stream->w_buffer == NULL) {
 		i_error("i_stream_next_line() called for unmodifyable stream");