diff options
| -rw-r--r-- | src/sp_pcre_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c index d3a10af..c575a79 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c | |||
| @@ -8,9 +8,9 @@ sp_pcre* sp_pcre_compile(const char* const pattern) { | |||
| 8 | PCRE2_SIZE erroroffset; | 8 | PCRE2_SIZE erroroffset; |
| 9 | sp_pcre* ret = pcre2_compile((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, | 9 | sp_pcre* ret = pcre2_compile((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, |
| 10 | PCRE2_CASELESS, &errornumber, &erroroffset, NULL); | 10 | PCRE2_CASELESS, &errornumber, &erroroffset, NULL); |
| 11 | pcre2_get_error_message(errornumber, pcre_error, sizeof(pcre_error)); | ||
| 12 | 11 | ||
| 13 | if (NULL == ret) { | 12 | if (NULL == ret) { |
| 13 | pcre2_get_error_message(errornumber, pcre_error, sizeof(pcre_error)); | ||
| 14 | sp_log_err("config", "Failed to compile '%s': %s on line %zu.", pattern, | 14 | sp_log_err("config", "Failed to compile '%s': %s on line %zu.", pattern, |
| 15 | pcre_error, sp_line_no); | 15 | pcre_error, sp_line_no); |
| 16 | } | 16 | } |
