diff options
Diffstat (limited to 'src/input/inputstream.c')
-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 5b2bd49..1a9be2a 100644 --- a/src/input/inputstream.c +++ b/src/input/inputstream.c @@ -113,8 +113,7 @@ parserutils_error parserutils_inputstream_create(const char *enc, error = parserutils_filter_setopt(s->input, PARSERUTILS_FILTER_SET_ENCODING, ¶ms); - if (error != PARSERUTILS_OK && - error != PARSERUTILS_INVALID) { + if (error != PARSERUTILS_OK) { parserutils_filter_destroy(s->input); parserutils_buffer_destroy(s->public.utf8); parserutils_buffer_destroy(s->raw); |