projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This source package is managed with Git since upstream version 1.7~dfsg.
[samtools.git]
/
bam_aux.c
diff --git
a/bam_aux.c
b/bam_aux.c
index 89e99f281adb652e144eea0a77074a1c6cec023a..fbcd9822b233dab64f6c861fb332846acb951ce7 100644
(file)
--- 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);
*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);
}
for (p = s + i + 1; i != k; ++i) if (s[i] == '-') break;
*begin = atoi(p);