aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-12 03:53:06 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-12 03:53:06 +0800
commitbffbf68143c7f929de5c9bed3a910711a00b84de (patch)
tree81058a8b1b267beaef66862e4350fe833b50ccce /e-util
parentafc95fbc44aa6c768a5aaf4f7c7fe115e02b2d06 (diff)
downloadgsoc2013-evolution-bffbf68143c7f929de5c9bed3a910711a00b84de.tar.gz
gsoc2013-evolution-bffbf68143c7f929de5c9bed3a910711a00b84de.tar.zst
gsoc2013-evolution-bffbf68143c7f929de5c9bed3a910711a00b84de.zip
(add_key): g_strdup() the value in the case
of a string value. svn path=/trunk/; revision=18708
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-config-listener.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 7a06ba8b4b..e8da4f498d 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-11 Ettore Perazzoli <ettore@ximian.com>
+
+ * e-config-listener.c (add_key): g_strdup() the value in the case
+ of a string value.
+
2002-11-11 Jeffrey Stedfast <fejj@ximian.com>
* Makefile.am: Re-add e-proxy.c to the build.
diff --git a/e-util/e-config-listener.c b/e-util/e-config-listener.c
index 5087aaed87..7f22cef8bb 100644
--- a/e-util/e-config-listener.c
+++ b/e-util/e-config-listener.c
@@ -221,7 +221,7 @@ add_key (EConfigListener *cl, const char *key, GConfValueType type,
memcpy (&kd->value.v_long, value, sizeof (long));
break;
case GCONF_VALUE_STRING :
- kd->value.v_str = (char *) value;
+ kd->value.v_str = g_strdup ((const char *) value);
break;
default :
break;