diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-08 23:08:30 +0000 |
commit | e53a5011237467c73c72b338570e4a455d2d1ef6 (patch) | |
tree | 1f580e130a9985f98c0fd6efb88f2c1071b1a7ca /test/filter.c | |
parent | 7836409aade83179b43dd7ad0699d9edf68aad90 (diff) | |
download | libparserutils-e53a5011237467c73c72b338570e4a455d2d1ef6.tar.gz |
Return errors from constructors and destructors.
svn path=/trunk/libparserutils/; revision=5652
Diffstat (limited to 'test/filter.c')
-rw-r--r-- | test/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/filter.c b/test/filter.c index ff4d1e7..044a772 100644 --- a/test/filter.c +++ b/test/filter.c @@ -37,8 +37,8 @@ int main(int argc, char **argv) PARSERUTILS_OK); /* Create input filter */ - input = parserutils_filter_create("UTF-8", myrealloc, NULL); - assert(input); + assert(parserutils_filter_create("UTF-8", myrealloc, NULL, &input) == + PARSERUTILS_OK); /* Convert filter to UTF-8 encoding */ params.encoding.name = "UTF-8"; |