]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build with pcre2
authorAndrew Lewis <nerf@judo.za.org>
Fri, 28 Apr 2017 13:27:58 +0000 (15:27 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 28 Apr 2017 13:27:58 +0000 (15:27 +0200)
src/libutil/map.c

index ceb90d2fb0bd7efab6e8a3819ea6a55efa5c615d..3c8db183b0946302745a17ef375712b93d0617b8 100644 (file)
@@ -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
+}