talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 54a6490bf8b78b34de8b124261247e21875cf83a
parent 47c129334fb334d3eb43c558b69392ca61bc0163
Author: wwp <subscript@free.fr>
Date:   Fri,  1 Oct 2021 08:15:38 +0200

Fix CID 1492308: incorrect expression.

Diffstat:
Msrc/common/template.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/template.c b/src/common/template.c @@ -177,7 +177,7 @@ GSList *template_read_config(void) while ((dir_name = g_dir_read_name(dir)) != NULL) { Template *tmpl; GStatBuf s; - gchar *filename = filename = g_strconcat(path, G_DIR_SEPARATOR_S, + gchar *filename = g_strconcat(path, G_DIR_SEPARATOR_S, dir_name, NULL); if (g_stat(filename, &s) != 0 || !S_ISREG(s.st_mode) ) {