summaryrefslogtreecommitdiff
path: root/src/core/ignore.c
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-06-23 13:25:23 +0200
committerAilin Nemui <ailin@z30a.localdomain>2017-01-02 17:50:14 +0100
commit5dcf291f2144564363f734dba15760d3a82b61c2 (patch)
tree05c0df68c8cea8474336a006d1db1aea978fe7f1 /src/core/ignore.c
parent5eaead761f1812fb9d4058b2bc38468521794693 (diff)
downloadirssi-5dcf291f2144564363f734dba15760d3a82b61c2.zip
Use the RAW flag when building the regexps.
Also, plugged a memory leak when retrieving the match position.
Diffstat (limited to 'src/core/ignore.c')
-rw-r--r--src/core/ignore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ignore.c b/src/core/ignore.c
index c91f6e4a..cfcbd792 100644
--- a/src/core/ignore.c
+++ b/src/core/ignore.c
@@ -328,7 +328,7 @@ static void ignore_init_rec(IGNORE_REC *rec)
if (rec->regexp && rec->pattern != NULL) {
GError *re_error;
- rec->preg = g_regex_new(rec->pattern, G_REGEX_CASELESS, 0, &re_error);
+ rec->preg = g_regex_new(rec->pattern, G_REGEX_OPTIMIZE | G_REGEX_RAW | G_REGEX_CASELESS, 0, &re_error);
if (rec->preg == NULL) {
g_warning("Failed to compile regexp '%s': %s", rec->pattern, re_error->message);