Skip to content

Commit 9667c91

Browse files
authored
(hopefully) final unused variable cleanup :) (#321)
1 parent 50d3394 commit 9667c91

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pcre2_fuzzsupport.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ uint32_t compile_options;
6060
uint32_t match_options;
6161
uint64_t random_options;
6262
pcre2_match_data *match_data = NULL;
63+
#ifdef SUPPORT_JIT
6364
pcre2_match_data *match_data_jit = NULL;
65+
#endif
6466
pcre2_match_context *match_context = NULL;
6567
size_t match_size;
6668
int dfa_workspace[DFA_WORKSPACE_COUNT];
@@ -159,8 +161,12 @@ for (i = 0; i < 2; i++)
159161
if (match_data == NULL)
160162
{
161163
match_data = pcre2_match_data_create(32, NULL);
164+
#ifdef SUPPORT_JIT
162165
match_data_jit = pcre2_match_data_create(32, NULL);
163166
if (match_data == NULL || match_data_jit == NULL)
167+
#else
168+
if (match_data == NULL)
169+
#endif
164170
{
165171
#ifdef STANDALONE
166172
printf("** Failed to create match data block\n");
@@ -336,7 +342,9 @@ for (i = 0; i < 2; i++)
336342
}
337343

338344
if (match_data != NULL) pcre2_match_data_free(match_data);
345+
#ifdef SUPPORT_JIT
339346
if (match_data_jit != NULL) pcre2_match_data_free(match_data_jit);
347+
#endif
340348
if (match_context != NULL) pcre2_match_context_free(match_context);
341349

342350
return 0;

0 commit comments

Comments
 (0)