X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_import.c;h=746dc5bbbde0415911794b28d666a4a53ef86be8;hb=8cc87acf088966330e253d44e67791696d74f35b;hp=7157f2ae242aef58c621702b07448cefc83e34a8;hpb=3c65ee9af86aeb40302ce89eaa1d0516af2c4091;p=samtools.git diff --git a/bam_import.c b/bam_import.c index 7157f2a..746dc5b 100644 --- a/bam_import.c +++ b/bam_import.c @@ -102,7 +102,7 @@ bam_header_t *sam_header_read2(const char *fn) assert(fp); ks = ks_init(fp); str = (kstring_t*)calloc(1, sizeof(kstring_t)); - while (ks_getuntil(ks, 0, str, &dret) >= 0) { + while (ks_getuntil(ks, 0, str, &dret) > 0) { char *s = strdup(str->s); int len, i; i = kh_size(hash);