diff options
-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) { |