Skip to content

Commit

Permalink
Merge pull request #112 from MaxKellermann/no_tells
Browse files Browse the repository at this point in the history
file: remove pointless tells() call
  • Loading branch information
gdraheim authored Feb 29, 2024
2 parents b47aea7 + d567d03 commit 8bd684e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion zzip/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,6 @@ zzip_seek(ZZIP_FILE* fp, zzip_off_t offset, int whence)
}

if (fp->method == 0) { /* unstore, just lseek relatively */
ofs = fp->io->fd.tells(dir->fd);
ofs = fp->io->fd.seeks(dir->fd, read_size, SEEK_CUR);
if (ofs > 0) { /* readjust from beginning of file */
ofs -= fp->dataoffset;
Expand Down

0 comments on commit 8bd684e

Please sign in to comment.