Explorar o código

HPCC-16561 Review changes

Signed-off-by: Michael Gardner <michael.gardner@lexisnexis.com>
Michael Gardner %!s(int64=8) %!d(string=hai) anos
pai
achega
4b1feff83d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      system/jlib/jregexp.cpp

+ 1 - 1
system/jlib/jregexp.cpp

@@ -1347,8 +1347,8 @@ static bool WildMatchNreplace ( const char *src, int srclen, int srcidx,
             else {
             else {
                 if ((srcidx == srclen) || (src[srcidx]!=next_char))
                 if ((srcidx == srclen) || (src[srcidx]!=next_char))
                     goto Fail;
                     goto Fail;
-                srcidx++;
             }
             }
+            srcidx++;
         }
         }
         else {
         else {
             loop {
             loop {