From 81d5ed7afd5d3352b29b6bb54c0bfd6dbe5d9857 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 16 Apr 2021 21:54:10 +0300 Subject: [PATCH] Fixed infinity loop in some bad selectors. For example: a['href'] This closes #84 issue on GitHub. --- source/mycss/selectors/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/mycss/selectors/state.c b/source/mycss/selectors/state.c index 191ee75..00e9c14 100644 --- a/source/mycss/selectors/state.c +++ b/source/mycss/selectors/state.c @@ -80,7 +80,7 @@ bool mycss_selectors_state_drop_component_value(mycss_entry_t* entry, mycss_toke if(token->type == entry->selectors->ending_token) { if(mycss_entry_parser_list_current_is_local(entry) == false) { mycss_entry_parser_list_pop(entry); - return false; + return true; } }