summaryrefslogtreecommitdiff
path: root/src/parse/properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties')
-rw-r--r--src/parse/properties/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c
index 4fb1fca..382798c 100644
--- a/src/parse/properties/utils.c
+++ b/src/parse/properties/utils.c
@@ -59,7 +59,8 @@ css_error parse_colour_specifier(css_language *c,
token->type != CSS_TOKEN_HASH &&
token->type != CSS_TOKEN_FUNCTION)) {
if (c->sheet->quirks_allowed == false ||
- (token->type != CSS_TOKEN_NUMBER &&
+ (token != NULL &&
+ token->type != CSS_TOKEN_NUMBER &&
token->type != CSS_TOKEN_DIMENSION))
return CSS_INVALID;
}