summaryrefslogtreecommitdiff
path: root/test/tree-buf.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:54:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 17:54:43 +0000
commitfe1b45b77687b0f9ab81f851e9eb2846f34e6765 (patch)
tree8f7d8fe4fe499a48e83c6468446b51c6cbec9942 /test/tree-buf.c
parentfd23949103aa8ec2c98ad3b209738617825e381d (diff)
downloadlibhubbub-fe1b45b77687b0f9ab81f851e9eb2846f34e6765.tar.gz
libhubbub-fe1b45b77687b0f9ab81f851e9eb2846f34e6765.tar.bz2
Return errors from parser constructor/destructor. This changes the public API.
svn path=/trunk/hubbub/; revision=5666
Diffstat (limited to 'test/tree-buf.c')
-rw-r--r--test/tree-buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tree-buf.c b/test/tree-buf.c
index 362f80a..e406a45 100644
--- a/test/tree-buf.c
+++ b/test/tree-buf.c
@@ -145,8 +145,8 @@ static hubbub_parser *setup_parser(void)
hubbub_parser *parser;
hubbub_parser_optparams params;
- parser = hubbub_parser_create("UTF-8", false, myrealloc, NULL);
- assert(parser != NULL);
+ assert(hubbub_parser_create("UTF-8", false, myrealloc, NULL, &parser) ==
+ HUBBUB_OK);
params.tree_handler = &tree_handler;
assert(hubbub_parser_setopt(parser, HUBBUB_PARSER_TREE_HANDLER,