aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-07-10 01:23:45 +0800
committerDan Winship <danw@src.gnome.org>2001-07-10 01:23:45 +0800
commit3b70c584967f35faf61e39df0508023c58b43e94 (patch)
tree70235a2df9246dff31851f5f37e666bab838f77a /mail/mail-display.c
parent84dd6b5536f10a266dcecf2754497257d4e8c984 (diff)
downloadgsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.gz
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.tar.zst
gsoc2013-evolution-3b70c584967f35faf61e39df0508023c58b43e94.zip
g_strdup the result of g_get_home_dir since this variable will get free'd
* mail-display.c (save_part): g_strdup the result of g_get_home_dir since this variable will get free'd later. svn path=/trunk/; revision=10918
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index ec7e393415..9eda71b942 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -212,7 +212,7 @@ save_part (CamelMimePart *part)
char *filename;
if(save_pathname == NULL)
- save_pathname = g_get_home_dir();
+ save_pathname = g_strdup (g_get_home_dir ());
filename = make_safe_filename (save_pathname, part);