summaryrefslogtreecommitdiff
path: root/src/parse/properties/css_property_parser_gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/properties/css_property_parser_gen.c')
-rw-r--r--src/parse/properties/css_property_parser_gen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse/properties/css_property_parser_gen.c b/src/parse/properties/css_property_parser_gen.c
index dec4745..ceebca0 100644
--- a/src/parse/properties/css_property_parser_gen.c
+++ b/src/parse/properties/css_property_parser_gen.c
@@ -126,7 +126,9 @@ void output_token_type_check(FILE *outputf, bool do_token_check, struct keyval_l
" const css_token *token;\n"
" bool match;\n\n"
" token = parserutils_vector_iterate(vector, ctx);\n"
- " if ((token == NULL)");
+ " if (%stoken == NULL%s",
+ do_token_check ? "(" : "",
+ do_token_check ? ")" : "");
if (do_token_check) {
bool prev = false; /* there was a previous check - add && */