]> git.donarmstrong.com Git - samtools.git/commitdiff
Fixed a bug in knet_seek
authorPetr Danecek <pd3@sanger.ac.uk>
Fri, 11 Dec 2009 17:31:05 +0000 (17:31 +0000)
committerPetr Danecek <pd3@sanger.ac.uk>
Fri, 11 Dec 2009 17:31:05 +0000 (17:31 +0000)
knetfile.c

index 994babb6a384e2757098bd6b042970a4dd54a801..47a394aebd3d424798767641aff629ae0d11919b 100644 (file)
@@ -566,7 +566,7 @@ off_t knet_seek(knetFile *fp, int64_t off, int whence)
         else if (whence==SEEK_SET)
             fp->offset = off;
                fp->is_ready = 0;
-               return fp->offset;
+               return 0;
        }
        errno = EINVAL;
     fprintf(stderr,"[knet_seek] %s\n", strerror(errno));