Skip to content

Commit

Permalink
Replace assert(0) with abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
mp15 authored and pd3 committed Jun 20, 2024
1 parent 5f20533 commit 61b922b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synced_bcf_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ DEALINGS IN THE SOFTWARE. */
#define HTS_BUILDING_LIBRARY // Enables HTSLIB_EXPORT, see htslib/hts_defs.h
#include <config.h>

#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
Expand Down Expand Up @@ -542,7 +543,7 @@ static int _reader_seek(bcf_sr_t *reader, const char *seq, hts_pos_t start, hts_
}
if (!reader->itr) {
hts_log_error("Could not seek: %s:%"PRIhts_pos"-%"PRIhts_pos, seq, start + 1, end + 1);
assert(0);
abort();
}
return 0;
}
Expand Down

0 comments on commit 61b922b

Please sign in to comment.