diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-08-31 17:03:37 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-08-31 17:03:37 +0100 |
commit | d8ecc7bf97934a1e2244788c610c958cacd740bd (patch) | |
tree | 7e3b4ff7626d78489b8c1b62abeaa964fbe3a7d9 | |
parent | 4e9ed49f8f12eb331b29bd5b6dc3693c520fddc2 (diff) | |
download | exim4-d8ecc7bf97934a1e2244788c610c958cacd740bd.tar.gz |
Fix non-WITH_CONTENT_SCAN build.
Broken-by: 4e9ed49f8f
-rw-r--r-- | src/src/exim.c | 11 | ||||
-rw-r--r-- | src/src/regex.c | 10 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index b9328f017..82e833067 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -1678,6 +1678,17 @@ else } +/* reset regex expansion variables */ +void +regex_vars_clear(void) +{ +regex_match_string = NULL; +for (int i = 0; i < REGEX_VARS; i++) regex_vars[i] = NULL; +} + + + + /************************************************* * Entry point and high-level code * diff --git a/src/src/regex.c b/src/src/regex.c index 25496f950..3088f0066 100644 --- a/src/src/regex.c +++ b/src/src/regex.c @@ -93,16 +93,6 @@ return FAIL; } -/* reset expansion variables */ -void -regex_vars_clear(void) -{ -regex_match_string = NULL; -for (int i = 0; i < REGEX_VARS; i++) regex_vars[i] = NULL; -} - - - int regex(const uschar ** listptr, BOOL cacheable) { |