summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-01-03 17:04:24 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-01-05 13:06:55 +0100
commit33107be74888ea08411904193f2832fcc7747692 (patch)
tree0c679c5478ab52db66e457c986e62897fe70fa1b
parentf852ccae6855e6d2bc8952aa1d081b3fc65f9ec8 (diff)
downloadirssi-33107be74888ea08411904193f2832fcc7747692.zip
fix GRegex GError problem
-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 bf8db04f..d4a92e3c 100644
--- a/src/core/ignore.c
+++ b/src/core/ignore.c
@@ -332,7 +332,7 @@ static void ignore_init_rec(IGNORE_REC *rec)
g_regex_unref(rec->preg);
if (rec->regexp && rec->pattern != NULL) {
- GError *re_error;
+ GError *re_error = NULL;
rec->preg = g_regex_new(rec->pattern, G_REGEX_OPTIMIZE | G_REGEX_RAW | G_REGEX_CASELESS, 0, &re_error);