samtools/htslib — pull request #144 by droazen (2014-11-07 17:49:52+00:00)
Title: bcf_sr_add_reader(): do not increment nreaders or perform any reallocs upon file open errors

This avoids a segfault if bcf_sr_destroy() is called after bcf_sr_add_reader()
when a file couldn't be opened.