summaryrefslogtreecommitdiff
path: root/src/parse/properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties')
-rw-r--r--src/parse/properties/font.c2
-rw-r--r--src/parse/properties/generated_list.c4
-rw-r--r--src/parse/properties/utils.c4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/parse/properties/font.c b/src/parse/properties/font.c
index 36228c2..e45f46f 100644
--- a/src/parse/properties/font.c
+++ b/src/parse/properties/font.c
@@ -117,8 +117,6 @@ css_error parse_font(css_language *c,
if (error == CSS_OK) {
consumeWhitespace(vector, ctx);
-
- token = parserutils_vector_peek(vector, *ctx);
} else {
break;
}
diff --git a/src/parse/properties/generated_list.c b/src/parse/properties/generated_list.c
index 0eedd02..71de141 100644
--- a/src/parse/properties/generated_list.c
+++ b/src/parse/properties/generated_list.c
@@ -671,7 +671,7 @@ css_error parse_quotes(css_language *c,
close = token->idata;
- token = parserutils_vector_iterate(vector, &temp_ctx);
+ parserutils_vector_iterate(vector, &temp_ctx);
consumeWhitespace(vector, &temp_ctx);
@@ -736,7 +736,7 @@ css_error parse_quotes(css_language *c,
close = token->idata;
- token = parserutils_vector_iterate(vector, ctx);
+ parserutils_vector_iterate(vector, ctx);
consumeWhitespace(vector, ctx);
diff --git a/src/parse/properties/utils.c b/src/parse/properties/utils.c
index c7af699..8676015 100644
--- a/src/parse/properties/utils.c
+++ b/src/parse/properties/utils.c
@@ -48,8 +48,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 != NULL &&
- token->type != CSS_TOKEN_NUMBER &&
+ token == NULL ||
+ (token->type != CSS_TOKEN_NUMBER &&
token->type != CSS_TOKEN_DIMENSION))
goto invalid;
}