1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00

fix GRegex GError problem

This commit is contained in:
ailin-nemui 2017-01-03 17:04:24 +01:00
parent f852ccae68
commit 33107be748

View File

@ -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);