diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-13 09:24:03 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-03-13 09:24:03 +0000 |
commit | fc18fccd5ed2050a05cad53714f429a529253711 (patch) | |
tree | 659c5ee8e912fd70546cd7578551701346b7fb61 /src/stylesheet.c | |
parent | c21a5d244101c695d59feaf5e333c194a33cc029 (diff) | |
download | libcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.gz |
Add structure versioning for client input
svn path=/trunk/libcss/; revision=12007
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; |