diff options
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index 604d824..6b4bf77 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -129,7 +129,9 @@ css_error css_stylesheet_create(css_stylesheet_params *params, css_stylesheet *sheet; size_t len; - if (params == NULL || params->url == NULL || alloc == NULL || + if (params == NULL || params->params_version != + CSS_STYLESHEET_PARAMS_VERSION_1 || + params->url == NULL || alloc == NULL || params->resolve == NULL || stylesheet == NULL) return CSS_BADPARM; |