aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 348cb72206..1ee9de5369 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -52,16 +52,15 @@
FilterContext *
mail_load_filter_context(void)
{
- char *userrules;
- char *systemrules;
+ char *user;
+ char *system;
FilterContext *fc;
- userrules = g_strdup_printf ("%s/filters.xml", evolution_dir);
- systemrules = g_strdup_printf ("%s/evolution/filtertypes.xml", EVOLUTION_DATADIR);
+ user = g_strdup_printf ("%s/filters.xml", evolution_dir);
+ system = EVOLUTION_DATADIR "/evolution/filtertypes.xml";
fc = filter_context_new ();
- rule_context_load ((RuleContext *)fc, systemrules, userrules);
- g_free (userrules);
- g_free (systemrules);
+ rule_context_load ((RuleContext *)fc, system, user);
+ g_free (user);
return fc;
}