]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/bcf.c
use zlib for direct reading when BCF_LITE is in use
[samtools.git] / bcftools / bcf.c
index 05eae5b7dc2bb8c54af062269950c679b9cddac8..bdc0a5eef5a4321805533f657ec7d0e610366eec 100644 (file)
@@ -13,7 +13,9 @@ bcf_t *bcf_open(const char *fn, const char *mode)
        } else {
                b->fp = strcmp(fn, "-")? bgzf_open(fn, mode) : bgzf_fdopen(fileno(stdin), mode);
        }
-       b->fp->owned_file = 1;
+#ifndef BCF_LITE
+       b->fp->ownede_file = 1;
+#endif
        return b;
 }