[pcre-dev] pcre2test.c: Double assignment of "capcount" vari…

Page principale
Supprimer ce message
Auteur: Ralf Junker
Date:  
À: pcre-dev@exim.org
Sujet: [pcre-dev] pcre2test.c: Double assignment of "capcount" variable intentional?
As of current SVN 740, in this code in pcre2test.c starting at line 6722, the 1st assignment of capcount is always overwritten by the 2nd one:

if (FLD(compiled_code, executable_jit) == NULL || 
          (dat_datctl.options & PCRE2_NO_JIT) != 0)
        {   
        capcount = check_match_limit(pp, arg_ulen, PCRE2_ERROR_HEAPLIMIT, 
          "heap");
        }
      capcount = check_match_limit(pp, arg_ulen, PCRE2_ERROR_MATCHLIMIT, 
        "match");
      }   
    else capcount = 0;


If this is intentional, please disregard this notice. Otherwise, there might be an else missing.

Ralf