summaryrefslogtreecommitdiff
path: root/test/tree-buf.c
diff options
context:
space:
mode:
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,