diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-13 02:00:25 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-13 02:00:25 +0000 |
commit | 93c721d6edc90e6f06eff8701824aa0d9ed6da16 (patch) | |
tree | c4484450cc2d3828c39ba17765b9af83d4e0aae6 /src/input | |
parent | 3687f28df9aba82eb1476261a66f12db3f5eb049 (diff) | |
download | libparserutils-93c721d6edc90e6f06eff8701824aa0d9ed6da16.tar.gz libparserutils-93c721d6edc90e6f06eff8701824aa0d9ed6da16.tar.bz2 |
Replace use of abort() with assertions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputstream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/inputstream.c b/src/input/inputstream.c index b2a1048..120ae88 100644 --- a/src/input/inputstream.c +++ b/src/input/inputstream.c @@ -412,8 +412,7 @@ parserutils_error parserutils_inputstream_refill_buffer( stream->encsrc = 0; } - if (stream->mibenum == 0) - abort(); + assert(stream->mibenum != 0); /* Strip any BOM, and update encoding as appropriate */ error = parserutils_inputstream_strip_bom(&stream->mibenum, |