From 79860abb33932cce7563d75191091ad4bf1b4f37 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 28 Apr 2017 15:27:58 +0200 Subject: [PATCH] [Minor] Fix build with pcre2 --- src/libutil/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/map.c b/src/libutil/map.c index ceb90d2fb..3c8db183b 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -2497,7 +2497,7 @@ rspamd_re_map_insert_helper (gpointer st, gconstpointer key, gconstpointer value } #else if (pcre_flags & PCRE_FLAG(UTF)) { - re_map->has_utf = TRUE; + re_map->map_flags |= RSPAMD_REGEXP_FLAG_UTF; } #endif @@ -2817,4 +2817,4 @@ rspamd_match_regexp_map_all (struct rspamd_regexp_map *map, g_ptr_array_free (ret, TRUE); return NULL; -} \ No newline at end of file +} -- 2.39.5