summaryrefslogtreecommitdiff
path: root/test/tokeniser.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:40:40 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:40:40 +0000
commit9c6e96d743c993f1b92f0cc2f07164d44780536e (patch)
tree9067578eeb652fd998ddc5462b7ff8c7fb8abd57 /test/tokeniser.c
parent6c0e77c643e96436d85aebb9195c83cb403c25fa (diff)
downloadlibhubbub-9c6e96d743c993f1b92f0cc2f07164d44780536e.tar.gz
libhubbub-9c6e96d743c993f1b92f0cc2f07164d44780536e.tar.bz2
Return errors from tokeniser constructor/destructor
svn path=/trunk/hubbub/; revision=5664
Diffstat (limited to 'test/tokeniser.c')
-rw-r--r--test/tokeniser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tokeniser.c b/test/tokeniser.c
index 913b66f..0614e78 100644
--- a/test/tokeniser.c
+++ b/test/tokeniser.c
@@ -41,8 +41,8 @@ int main(int argc, char **argv)
assert(parserutils_inputstream_create("UTF-8", 0, NULL,
myrealloc, NULL, &stream) == PARSERUTILS_OK);
- tok = hubbub_tokeniser_create(stream, myrealloc, NULL);
- assert(tok != NULL);
+ assert(hubbub_tokeniser_create(stream, myrealloc, NULL, &tok) ==
+ HUBBUB_OK);
params.token_handler.handler = token_handler;
params.token_handler.pw = NULL;