summaryrefslogtreecommitdiff
path: root/src/parse/parse.c
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2019-02-18 00:34:02 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-10 13:42:03 +0000
commitdb3834aa96dc06f4be51d936246e2a297e02fecf (patch)
tree5ce665405d0480e415c77ff6320b59dc2a7e6ffe /src/parse/parse.c
parent76474f669d55122d3ddc5d7898ea753312c116fd (diff)
downloadlibcss-db3834aa96dc06f4be51d936246e2a297e02fecf.tar.gz
libcss-db3834aa96dc06f4be51d936246e2a297e02fecf.tar.bz2
Parse: fix broken state transition in parseAny
Diffstat (limited to 'src/parse/parse.c')
-rw-r--r--src/parse/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/parse.c b/src/parse/parse.c
index d79551a..91bcff5 100644
--- a/src/parse/parse.c
+++ b/src/parse/parse.c
@@ -2053,9 +2053,9 @@ css_error parseAny(css_parser *parser)
parser->match_char = lwc_string_data(
token->idata)[0] == '(' ? ')' : ']';
state->substate = WS;
+ } else {
+ state->substate = WS2;
}
-
- state->substate = WS2;
/* Fall through */
case WS:
case WS2: