+2006-04-09 [colin] 2.1.0cvs24
+
+ * src/prefs_common.c
+ gettext() returns statically allocated stuff. We have
+ to strdup it in order to be able to free it.
+
2006-04-09 [colin] 2.1.0cvs23
* AUTHORS
( cvs diff -u -r 1.105.2.50 -r 1.105.2.51 src/prefs_account.c; cvs diff -u -r 1.16.2.18 -r 1.16.2.19 src/prefs_customheader.c; ) > 2.1.0cvs21.patchset
( cvs diff -u -r 1.274.2.105 -r 1.274.2.106 src/mainwindow.c; cvs diff -u -r 1.1.2.38 -r 1.1.2.39 src/gtk/quicksearch.c; ) > 2.1.0cvs22.patchset
( cvs diff -u -r 1.100.2.37 -r 1.100.2.38 AUTHORS; cvs diff -u -r 1.1.2.17 -r 1.1.2.18 src/gtk/authors.h; ) > 2.1.0cvs23.patchset
+( cvs diff -u -r 1.204.2.81 -r 1.204.2.82 src/prefs_common.c; ) > 2.1.0cvs24.patchset
void prefs_common_read_config(void)
{
gchar *rcpath;
+ gchar *tmp;
rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
prefs_read_config(param, "Common", rcpath, NULL);
g_free(rcpath);
- prefs_common.quotefmt = gettext(prefs_common.quotefmt);
- prefs_common.fw_quotefmt = gettext(prefs_common.fw_quotefmt);
- prefs_common.date_format = gettext(prefs_common.date_format);
+ tmp = g_strdup(gettext(prefs_common.quotefmt));
+ g_free(prefs_common.quotefmt);
+ prefs_common.quotefmt = tmp;
+
+ tmp = g_strdup(gettext(prefs_common.fw_quotefmt));
+ g_free(prefs_common.fw_quotefmt);
+ prefs_common.fw_quotefmt = tmp;
+
+ tmp = g_strdup(gettext(prefs_common.date_format));
+ g_free(prefs_common.date_format);
+ prefs_common.date_format = tmp;
prefs_common.mime_open_cmd_history =
prefs_common_read_history(COMMAND_HISTORY);