diff --git a/xmlregexp.c b/xmlregexp.c index 9e9c3752a10b4866d20b42baf3dfdc627c7b7180..2eabe93e753289a0d02c5b3a5978182f8aeef9d0 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -1872,7 +1872,7 @@ xmlFAEliminateSimpleEpsilonTransitions(xmlRegParserCtxtPtr ctxt) { continue; if (state->nbTrans != 1) continue; - if (state->type == XML_REGEXP_UNREACH_STATE) + if (state->type == XML_REGEXP_UNREACH_STATE || state->type == XML_REGEXP_FINAL_STATE) continue; /* is the only transition out a basic transition */ if ((state->trans[0].atom == NULL) &&