diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-06-12 12:25:54 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-06-12 12:27:04 +0100 |
commit | f3b8e297d3af3817f83011b64cf2a389059115f3 (patch) | |
tree | dea9f6b69bcb54071d33a49eb729e170f8fb5e48 /src | |
parent | 35ab0a4e9406f9eeb29ca261680d911c423e4f90 (diff) | |
download | libcss-f3b8e297d3af3817f83011b64cf2a389059115f3.tar.gz libcss-f3b8e297d3af3817f83011b64cf2a389059115f3.tar.bz2 |
resolve use of uninitialised pointer in media query initialisation
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/mq.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |