Skip to content
Snippets Groups Projects
Commit e90ad09e authored by jrayner's avatar jrayner
Browse files

fail is uncompressed input file is detected

parent 830e0225
No related branches found
No related tags found
No related merge requests found
......@@ -335,6 +335,12 @@ int main(int argc, char **argv)
return 1;
}
}
if (!fp->is_compressed) {
fprintf(stderr, "[bgzip] Expected compressed file -- ignored\n");
return 1;
}
if (threads > 1)
bgzf_mt(fp, threads, 256);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment