diff options
-rw-r--r-- | libempathy/empathy-account-settings.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index 1d2379fe5..604392202 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -1646,8 +1646,16 @@ empathy_account_settings_set_regex (EmpathyAccountSettings *settings, { EmpathyAccountSettingsPriv *priv = GET_PRIV (settings); GRegex *regex; + GError *error = NULL; + + regex = g_regex_new (pattern, 0, 0, &error); + if (regex == NULL) + { + g_warning ("Failed to create reg exp: %s", error->message); + g_error_free (error); + return; + } - regex = g_regex_new (pattern, 0, 0, NULL); g_hash_table_insert (priv->param_regexps, g_strdup (param), regex); } |