Adjust code for PR100 to put declarations before code

This commit is contained in:
Philip Hazel 2022-04-15 12:23:04 +01:00
parent ba6a5f16d2
commit 13be26a5c2
1 changed files with 3 additions and 2 deletions

View File

@ -148,11 +148,12 @@ for (i = 0; i < 2; i++)
if (code != NULL) if (code != NULL)
{ {
int j;
uint32_t save_match_options = match_options;
#ifdef SUPPORT_JIT #ifdef SUPPORT_JIT
pcre2_jit_compile(code, PCRE2_JIT_COMPLETE); pcre2_jit_compile(code, PCRE2_JIT_COMPLETE);
#endif #endif
int j;
uint32_t save_match_options = match_options;
/* Create match data and context blocks only when we first need them. Set /* Create match data and context blocks only when we first need them. Set
low match and depth limits to avoid wasting too much searching large low match and depth limits to avoid wasting too much searching large