From: Timo Sirainen Date: Sat, 19 Jun 2004 22:06:30 +0000 (+0300) Subject: seek optimization X-Git-Tag: 1.1.alpha1~3920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35df1dd606c5ef21068ab4fe4be305859d4fad4b;p=thirdparty%2Fdovecot%2Fcore.git seek optimization --HG-- branch : HEAD --- diff --git a/src/lib/istream.c b/src/lib/istream.c index aced7bbc8b..0d84246520 100644 --- a/src/lib/istream.c +++ b/src/lib/istream.c @@ -78,7 +78,7 @@ void i_stream_seek(struct istream *stream, uoff_t v_offset) { struct _istream *_stream = stream->real_stream; - if (v_offset > stream->v_offset) { + if (v_offset >= stream->v_offset) { i_stream_skip(stream, v_offset - stream->v_offset); return; }