From f87801ced60e92888325b0732d3e737f50abe1c9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 6 May 2019 14:02:32 +0100 Subject: Media queries: Pass the right tokens to mq_populate_value. --- src/parse/mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse') diff --git a/src/parse/mq.c b/src/parse/mq.c index 799edf7..f3510c1 100644 --- a/src/parse/mq.c +++ b/src/parse/mq.c @@ -420,7 +420,7 @@ static css_error mq_parse_range(lwc_string **strings, result->value.data.num_or_ratio = ratio; } else { /* num/dim/ident */ - error = mq_populate_value(&result->value, token); + error = mq_populate_value(&result->value, name_or_value); if (error != CSS_OK) { free(result); return error; @@ -433,7 +433,7 @@ static css_error mq_parse_range(lwc_string **strings, result->value2.data.num_or_ratio = ratio; } else { /* num/dim/ident */ - error = mq_populate_value(&result->value2, token); + error = mq_populate_value(&result->value2, value2); if (error != CSS_OK) { css__mq_feature_destroy(result); return error; -- cgit v1.2.3