summaryrefslogtreecommitdiff
path: root/test/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parse.c')
-rw-r--r--test/parse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parse.c b/test/parse.c
index 1752dc2..4ff9a6e 100644
--- a/test/parse.c
+++ b/test/parse.c
@@ -86,9 +86,8 @@ int main(int argc, char **argv)
/* Initialise library */
assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK);
- parser = css_parser_create("UTF-8", CSS_CHARSET_DICTATED,
- myrealloc, NULL);
- assert(parser != NULL);
+ assert(css_parser_create("UTF-8", CSS_CHARSET_DICTATED,
+ myrealloc, NULL, &parser) == CSS_OK);
params.event_handler.handler = event_handler;
params.event_handler.pw = NULL;