Skip to content

Commit

Permalink
regex: init globals for safer shutdown on failure
Browse files Browse the repository at this point in the history
(cherry picked from commit 84517c1)
  • Loading branch information
miconda committed Apr 25, 2024
1 parent 794c2ed commit eaacc17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/regex/regex_mod.c
Expand Up @@ -68,7 +68,7 @@ gen_lock_t *reload_lock;
/*
* Module exported parameter variables
*/
static char *file;
static char *file = NULL;
static int max_groups = MAX_GROUPS;
static int group_max_size = GROUP_MAX_SIZE;
static int pcre_caseless = 0;
Expand All @@ -83,9 +83,9 @@ static int pcre_extended = 0;
static pcre2_general_context *pcres_gctx = NULL;
static pcre2_match_context *pcres_mctx = NULL;
static pcre2_compile_context *pcres_ctx = NULL;
static pcre2_code **pcres;
static pcre2_code ***pcres_addr;
static int *num_pcres;
static pcre2_code **pcres = NULL;
static pcre2_code ***pcres_addr = NULL;
static int *num_pcres = NULL;
static int pcre_options = 0x00000000;


Expand Down

0 comments on commit eaacc17

Please sign in to comment.