X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=blobdiff_plain;f=bam_aux.c;h=fbcd9822b233dab64f6c861fb332846acb951ce7;hp=89e99f281adb652e144eea0a77074a1c6cec023a;hb=cefa18095b2479339b08111936313066ec548657;hpb=317f5e8dd22cc9e1e5e05fbcaeb3b9aca7447351 diff --git a/bam_aux.c b/bam_aux.c index 89e99f2..fbcd982 100644 --- a/bam_aux.c +++ b/bam_aux.c @@ -115,7 +115,7 @@ int bam_parse_region(bam_header_t *header, const char *str, int *ref_id, int *be *ref_id = kh_value(h, iter); if (i == k) { /* dump the whole sequence */ *begin = 0; *end = 1<<29; free(s); - return -1; + return 0; } for (p = s + i + 1; i != k; ++i) if (s[i] == '-') break; *begin = atoi(p);