X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=samtools%2Fbam_aux.c;fp=samtools%2Fbam_aux.c;h=fbcd9822b233dab64f6c861fb332846acb951ce7;hp=89e99f281adb652e144eea0a77074a1c6cec023a;hb=6a7c3f175b210cc16d09a5e8e4c1d47333dbe1c6;hpb=aa8ecff068edbb09a03bd874fce716e93e22e53c diff --git a/samtools/bam_aux.c b/samtools/bam_aux.c index 89e99f2..fbcd982 100644 --- a/samtools/bam_aux.c +++ b/samtools/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);