Skip to content

Commit 61b922b

Browse files
mp15pd3
authored andcommitted
Replace assert(0) with abort()
1 parent 5f20533 commit 61b922b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

synced_bcf_reader.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE. */
2525
#define HTS_BUILDING_LIBRARY // Enables HTSLIB_EXPORT, see htslib/hts_defs.h
2626
#include <config.h>
2727

28+
#include <stdlib.h>
2829
#include <assert.h>
2930
#include <stdio.h>
3031
#include <unistd.h>
@@ -542,7 +543,7 @@ static int _reader_seek(bcf_sr_t *reader, const char *seq, hts_pos_t start, hts_
542543
}
543544
if (!reader->itr) {
544545
hts_log_error("Could not seek: %s:%"PRIhts_pos"-%"PRIhts_pos, seq, start + 1, end + 1);
545-
assert(0);
546+
abort();
546547
}
547548
return 0;
548549
}

0 commit comments

Comments
 (0)