diff options
Diffstat (limited to 'test/css21.c')
-rw-r--r-- | test/css21.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/css21.c b/test/css21.c index 56e6a90..17e95b4 100644 --- a/test/css21.c +++ b/test/css21.c @@ -30,10 +30,9 @@ int main(int argc, char **argv) /* Initialise library */ assert(css_initialise(argv[1], myrealloc, NULL) == CSS_OK); - sheet = css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[2], NULL, + assert(css_stylesheet_create(CSS_LEVEL_21, "UTF-8", argv[2], NULL, CSS_ORIGIN_AUTHOR, CSS_MEDIA_ALL, NULL, NULL, - myrealloc, NULL); - assert(sheet != NULL); + myrealloc, NULL, &sheet) == CSS_OK); fp = fopen(argv[2], "rb"); if (fp == NULL) { |