samtools/samtools — pull request #208 by ernfrid (2014-04-25 20:49:57+00:00)
Title: Check that both key and value exist in sam_header2key_val

If either the key or the value don't exist then move on. The previous behavior resulted in segmentation faults when either of the two didn't exist in the header.