diff options
Diffstat (limited to 'imap/src/osdep/unix/fdstring.c')
-rw-r--r-- | imap/src/osdep/unix/fdstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/src/osdep/unix/fdstring.c b/imap/src/osdep/unix/fdstring.c index 7a491f7d..207e4d0b 100644 --- a/imap/src/osdep/unix/fdstring.c +++ b/imap/src/osdep/unix/fdstring.c @@ -91,7 +91,7 @@ static void fd_string_setpos (STRING *s,unsigned long i) s->offset = i; /* set new offset */ s->curpos = s->chunk; /* reset position */ /* set size of data */ - if (s->cursize = min (s->chunksize,SIZE (s))) { + if ((s->cursize = min (s->chunksize,SIZE (s))) != 0L) { /* move to that position in the file */ lseek ((long) s->data,s->data1 + s->offset,L_SET); read ((long) s->data,s->curpos,(size_t) s->cursize); |