From fc18fccd5ed2050a05cad53714f429a529253711 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 13 Mar 2011 09:24:03 +0000 Subject: Add structure versioning for client input svn path=/trunk/libcss/; revision=12007 --- src/stylesheet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/stylesheet.c') 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; -- cgit v1.2.3