+/*
+ * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 2002 by the Sylpheed Claws Team and Hiroyuki Yamamoto
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
? REG_ICASE : 0)) != 0) {
prop->error = 1;
g_free(prop->preg);
+ prop->preg = NULL;
}
}
if (prop->preg == NULL)
file = procmsg_get_message_file(info);
if (file == NULL)
return FALSE;
+ g_free(file);
cmd = matching_build_command(prop->unesc_expr, info);
if (cmd == NULL)
return FALSE;
retval = system(cmd);
- debug_print(_("Command exit code: %d\n"), retval);
+ debug_print("Command exit code: %d\n", retval);
+ g_free(cmd);
return (retval == 0);
}
gchar * p;
gint size;
- gchar *no_subject = _("(none)") ;
- gchar *no_from = _("(none)") ;
- gchar *no_to = _("(none)") ;
- gchar *no_cc = _("(none)") ;
- gchar *no_date = _("(none)") ;
- gchar *no_msgid = _("(none)") ;
- gchar *no_newsgroups = _("(none)") ;
- gchar *no_references = _("(none)") ;
+ const gchar *const no_subject = _("(none)") ;
+ const gchar *const no_from = _("(none)") ;
+ const gchar *const no_to = _("(none)") ;
+ const gchar *const no_cc = _("(none)") ;
+ const gchar *const no_date = _("(none)") ;
+ const gchar *const no_msgid = _("(none)") ;
+ const gchar *const no_newsgroups = _("(none)") ;
+ const gchar *const no_references = _("(none)") ;
size = STRLEN_ZERO(cmd) + 1;
while (*s != '\0') {
case 'F': /* file */
strcpy(p, filename);
p += strlen(p);
+ g_free(filename);
break;
default:
*p = '%';
GSList *cur;
ScoringProp * prop;
- debug_print(_("Writing matcher configuration...\n"));
+ debug_print("Writing matcher configuration...\n");
rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S,
MATCHER_RC, NULL);