summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/select/select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 47aca20..cc6b646 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1145,6 +1145,7 @@ static void update_reject_cache(css_select_state *state,
N_ELEMENTS(state->reject_cache) ||
comb != CSS_COMBINATOR_ANCESTOR ||
next_detail == NULL ||
+ next_detail->next != 0 ||
(next_detail->type != CSS_SELECTOR_CLASS &&
next_detail->type != CSS_SELECTOR_ID))
return;