[evolution-data-server/meego-eds] Dup the charset as it invalidates after the call ends.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/meego-eds] Dup the charset as it invalidates after the call ends.
- Date: Tue, 26 Jul 2011 07:02:41 +0000 (UTC)
commit c0bb2d8ecde955eda4e4311d3542d65d9c9ecb74
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Fri Jul 15 13:58:21 2011 -0700
Dup the charset as it invalidates after the call ends.
mail/daemon/e-mail-data-folder.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mail/daemon/e-mail-data-folder.c b/mail/daemon/e-mail-data-folder.c
index 51bab58..bfa6214 100644
--- a/mail/daemon/e-mail-data-folder.c
+++ b/mail/daemon/e-mail-data-folder.c
@@ -1039,7 +1039,10 @@ app_getmsg_operate (CamelFolder *folder, gpointer sdata, GError **error)
charset = gconf_client_get_string (gconf, "/apps/evolution/mail/display/charset",NULL);
g_object_unref (gconf);
if (!charset || !*charset) {
- ret = g_get_charset (&charset);
+ char *lcharset = NULL;
+ ret = g_get_charset (&lcharset);
+ if (lcharset)
+ charset = g_strdup(lcharset);
}
micro(printf("Got Charset? %d: %s\n", ret, charset ? charset : ""));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]