]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
o_stream_seek() return value was checked wrong
authorTimo Sirainen <tss@iki.fi>
Mon, 17 Feb 2003 18:48:20 +0000 (20:48 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 17 Feb 2003 18:48:20 +0000 (20:48 +0200)
--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-expunge.c

index 89f86ec51ff7a8872b1eb0710db958ee410ee08b..c43bae010f9b3fdb8ee8b3ad3075b01978bb0858 100644 (file)
@@ -56,7 +56,7 @@ static int expunge_real(struct index_mailbox *ibox,
                        if (!expunges) {
                                /* first expunged record, seek to position
                                   where we want to begin writing */
-                               if (!o_stream_seek(output, from_offset))
+                               if (o_stream_seek(output, from_offset) < 0)
                                        return FALSE;
                                expunges = TRUE;
                        }