]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
seek optimization
authorTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 22:06:30 +0000 (01:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 19 Jun 2004 22:06:30 +0000 (01:06 +0300)
--HG--
branch : HEAD

src/lib/istream.c

index aced7bbc8beb1c978d8c3e66bfa05de6b04f9687..0d842465209b29d46a2617e0ea0dd9215c71a324 100644 (file)
@@ -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;
        }