summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:24:03 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:24:03 +0000
commitfc18fccd5ed2050a05cad53714f429a529253711 (patch)
tree659c5ee8e912fd70546cd7578551701346b7fb61 /src/stylesheet.c
parentc21a5d244101c695d59feaf5e333c194a33cc029 (diff)
downloadlibcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.gz
libcss-fc18fccd5ed2050a05cad53714f429a529253711.tar.bz2
Add structure versioning for client input
svn path=/trunk/libcss/; revision=12007
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c4
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;