diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-06 00:18:19 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-06 00:18:19 +0000 |
commit | 007c7b16ab269fc16cc4d3a337d3b84319097368 (patch) | |
tree | a7105d61bdbb50cd7734ef602453639246e629d7 /src/input/inputstream.c | |
parent | 0d791659e1150154404bf311bf706063b65303e8 (diff) | |
download | libparserutils-007c7b16ab269fc16cc4d3a337d3b84319097368.tar.gz libparserutils-007c7b16ab269fc16cc4d3a337d3b84319097368.tar.bz2 |
Make input filter correctly return _BADENCODING.
svn path=/trunk/libparserutils/; revision=5964
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); |