diff options
Diffstat (limited to 'src')
| -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 3658692..10127ba 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c | |||
| @@ -32,7 +32,7 @@ bool sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, size_t le | |||
| 32 | #ifdef SP_HAS_PCRE2 | 32 | #ifdef SP_HAS_PCRE2 |
| 33 | pcre2_match_data* match_data = pcre2_match_data_create_from_pattern(regexp, NULL); | 33 | pcre2_match_data* match_data = pcre2_match_data_create_from_pattern(regexp, NULL); |
| 34 | if (NULL == match_data) { | 34 | if (NULL == match_data) { |
| 35 | sp_log_err("regexp", "Unable to get memory for a regxp."); | 35 | sp_log_err("regexp", "Unable to get memory for a regexp."); |
| 36 | } | 36 | } |
| 37 | ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL); | 37 | ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL); |
| 38 | pcre2_match_data_free(match_data); | 38 | pcre2_match_data_free(match_data); |
