From 13be26a5c27dacf72e3c5d076e2c12955df75590 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Fri, 15 Apr 2022 12:23:04 +0100 Subject: [PATCH] Adjust code for PR100 to put declarations before code --- src/pcre2_fuzzsupport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pcre2_fuzzsupport.c b/src/pcre2_fuzzsupport.c index 6e96fc25d..311dce26b 100644 --- a/src/pcre2_fuzzsupport.c +++ b/src/pcre2_fuzzsupport.c @@ -148,11 +148,12 @@ for (i = 0; i < 2; i++) if (code != NULL) { + int j; + uint32_t save_match_options = match_options; + #ifdef SUPPORT_JIT pcre2_jit_compile(code, PCRE2_JIT_COMPLETE); #endif - int j; - uint32_t save_match_options = match_options; /* 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