summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-12 17:35:02 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-12 17:35:02 +0000
commit09f914769370bee27e5a5dddbcb2c8da8b3925b9 (patch)
treeefcd302a1b16c779fd1f2db2f625ced74d27f622
parent982ce1524a328f9ff20d6b242b7735051cd318aa (diff)
downloadlibcss-09f914769370bee27e5a5dddbcb2c8da8b3925b9.tar.gz
libcss-09f914769370bee27e5a5dddbcb2c8da8b3925b9.tar.bz2
Verify parameters to css_select_style.
svn path=/trunk/libcss/; revision=6459
-rw-r--r--src/select/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 04dff1f..1d6740f 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -408,7 +408,7 @@ css_error css_select_style(css_select_ctx *ctx, void *node,
css_error error;
css_select_state state;
- if (ctx == NULL || node == NULL || result == NULL)
+ if (ctx == NULL || node == NULL || result == NULL || handler == NULL)
return CSS_BADPARM;
/* Set up the selection state */