Skip to content

Commit dff72ba

Browse files
committed
patch 8.0.1478: unnecessary condition
Problem: Unnecessary condition for "len" being zero. Solution: Remove the condition. (Dominique Pelle)
1 parent d317b38 commit dff72ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/regexp_nfa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6183,7 +6183,7 @@ nfa_regmatch(
61836183
{
61846184
/* If \Z was present, then ignore composing characters.
61856185
* When ignoring the base character this always matches. */
6186-
if (len == 0 && sta->c != curc)
6186+
if (sta->c != curc)
61876187
result = FAIL;
61886188
else
61896189
result = OK;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1478,
774776
/**/
775777
1477,
776778
/**/

0 commit comments

Comments
 (0)