From: Andrew Lewis Date: Fri, 28 Apr 2017 13:27:58 +0000 (+0200) Subject: [Minor] Fix build with pcre2 X-Git-Tag: 1.6.0~301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79860abb33932cce7563d75191091ad4bf1b4f37;p=rspamd.git [Minor] Fix build with pcre2 --- 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 +}