summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-08-05 12:10:51 +0100
committerVincent Sanders <vince@kyllikki.org>2012-08-05 12:10:51 +0100
commitea2b6fbb7abb906038ab9fe8b54f8a425f107b33 (patch)
treeaed8aaa3785c8d980bb0b6b47a5f0f55925cce8d /test
parent42ee3a48ecea188ee274f1660612ed5637aaf71f (diff)
downloadlibdom-ea2b6fbb7abb906038ab9fe8b54f8a425f107b33.tar.gz
libdom-ea2b6fbb7abb906038ab9fe8b54f8a425f107b33.tar.bz2
fix test utility
Diffstat (limited to 'test')
-rw-r--r--test/testutils/load.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/testutils/load.c b/test/testutils/load.c
index e725fc3..322afe5 100644
--- a/test/testutils/load.c
+++ b/test/testutils/load.c
@@ -103,7 +103,7 @@ dom_document *load_html(const char *file, bool willBeModified)
UNUSED(willBeModified);
- parser = dom_hubbub_parser_create(NULL, true, false, mymsg, NULL, NULL);
+ parser = dom_hubbub_parser_create(NULL, true, false, &ret, mymsg, NULL, NULL);
if (parser == NULL) {
fprintf(stderr, "Can't create Hubbub Parser\n");
return NULL;
@@ -141,7 +141,6 @@ dom_document *load_html(const char *file, bool willBeModified)
return NULL;
}
- ret = dom_hubbub_parser_get_document(parser);
dom_hubbub_parser_destroy(parser);
return ret;