summaryrefslogtreecommitdiff
path: root/mail/sylpheed-gtk2/files/patch-src::prefs.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-04-18 17:14:10 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-04-18 17:14:10 +0000
commited6e532c278588a98270d0b64fdbc1b234b4ef67 (patch)
tree2a4ddaf0edb8d6e4f0e7203f7a8352d20821870d /mail/sylpheed-gtk2/files/patch-src::prefs.c
parent- Update to version 1.0.12 (diff)
- Fix loading empty preference keys
- Do not load ~/.gtkrc [1] [1] reported by Davide D'Amico and Giuseppe Serano PR: ports/65728 Submitted by: maintainer
Diffstat (limited to '')
-rw-r--r--mail/sylpheed-gtk2/files/patch-src::prefs.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/sylpheed-gtk2/files/patch-src::prefs.c b/mail/sylpheed-gtk2/files/patch-src::prefs.c
new file mode 100644
index 000000000000..e0ae6ee8a78f
--- /dev/null
+++ b/mail/sylpheed-gtk2/files/patch-src::prefs.c
@@ -0,0 +1,30 @@
+--- src/prefs.c.orig Fri Jan 23 12:08:46 2004
++++ src/prefs.c Fri Jan 23 12:16:37 2004
+@@ -109,17 +109,18 @@
+ case P_STRING:
+ {
+ #warning FIXME_GTK2
+- gchar *tmp;
++ gchar *tmp = NULL;
+
+- tmp = *value ?
+- conv_codeset_strdup(value,
+- conv_get_current_charset_str(),
+- CS_UTF_8)
+- : g_strdup("");
+- if (!tmp) {
+- g_warning("faild to convert character set.");
+- tmp = g_strdup(value);
++ if (*value) {
++ tmp = conv_codeset_strdup(value,
++ conv_get_current_charset_str(),
++ CS_UTF_8);
++ if (!tmp) {
++ g_warning("failed to convert character set.");
++ tmp = g_strdup(value);
++ }
+ }
++
+ g_free(*((gchar **)param[i].data));
+ *((gchar **)param[i].data) = tmp;
+ break;