From f3b8e297d3af3817f83011b64cf2a389059115f3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 12 Jun 2019 12:25:54 +0100 Subject: resolve use of uninitialised pointer in media query initialisation --- src/parse/mq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parse') diff --git a/src/parse/mq.c b/src/parse/mq.c index fb32b38..a8a5411 100644 --- a/src/parse/mq.c +++ b/src/parse/mq.c @@ -745,6 +745,9 @@ static css_error mq_parse_media_in_parens(lwc_string **strings, *ctx = old_ctx; error = mq_parse_general_enclosed(strings, vector, ctx); + if (error == CSS_OK) { + *cond_or_feature = NULL; + } return error; } -- cgit v1.2.3