aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog9
-rw-r--r--e-util/e-config-listener.c8
2 files changed, 13 insertions, 4 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index c4d6b1e222..2bc98e4550 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,12 @@
+2002-11-06 Chris Toshok <toshok@ximian.com>
+
+ * e-config-listener.c (e_config_listener_set_boolean): init err to
+ NULL so if there isn't an error we aren't left with an unitialized
+ GError. Fixes crash.
+ (e_config_listener_set_float): same.
+ (e_config_listener_set_long): same.
+ (e_config_listener_set_string): same.
+
2002-11-05 Rodrigo Moya <rodrigo@ximian.com>
* e-component-listener.[ch]: ported to GObject.
diff --git a/e-util/e-config-listener.c b/e-util/e-config-listener.c
index 3ffe5012a9..5087aaed87 100644
--- a/e-util/e-config-listener.c
+++ b/e-util/e-config-listener.c
@@ -456,7 +456,7 @@ void
e_config_listener_set_boolean (EConfigListener *cl, const char *key, gboolean value)
{
KeyData *kd;
- GError *err;
+ GError *err = NULL;
g_return_if_fail (E_IS_CONFIG_LISTENER (cl));
g_return_if_fail (key != NULL);
@@ -481,7 +481,7 @@ void
e_config_listener_set_float (EConfigListener *cl, const char *key, float value)
{
KeyData *kd;
- GError *err;
+ GError *err = NULL;
g_return_if_fail (E_IS_CONFIG_LISTENER (cl));
g_return_if_fail (key != NULL);
@@ -506,7 +506,7 @@ void
e_config_listener_set_long (EConfigListener *cl, const char *key, long value)
{
KeyData *kd;
- GError *err;
+ GError *err = NULL;
g_return_if_fail (E_IS_CONFIG_LISTENER (cl));
g_return_if_fail (key != NULL);
@@ -532,7 +532,7 @@ e_config_listener_set_string (EConfigListener *cl, const char *key, const char *
{
char *s1, *s2;
KeyData *kd;
- GError *err;
+ GError *err = NULL;
g_return_if_fail (E_IS_CONFIG_LISTENER (cl));
g_return_if_fail (key != NULL);