samtools/samtools — pull request #113 by kmsquire (2014-01-21 21:38:05+00:00)
Title: Allow sam files with no reads to be converted to bam files

* Without this patch, the last header line is treated as a read.
* Useful in pipelines which split up inputs into small pieces
and filters them.