Skip to content
Permalink
Browse files

patch 8.0.1478: unnecessary condition

Problem:    Unnecessary condition for "len" being zero.
Solution:   Remove the condition. (Dominique Pelle)
  • Loading branch information...
brammool committed Feb 8, 2018
1 parent d317b38 commit dff72ba4459f54cac2ce40eea3d92097660c7b9f
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/regexp_nfa.c
  2. +2 −0 src/version.c
@@ -6183,7 +6183,7 @@ nfa_regmatch(
{
/* If \Z was present, then ignore composing characters.
* When ignoring the base character this always matches. */
if (len == 0 && sta->c != curc)
if (sta->c != curc)
result = FAIL;
else
result = OK;
@@ -771,6 +771,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1478,
/**/
1477,
/**/

0 comments on commit dff72ba

Please sign in to comment.
You can’t perform that action at this time.