diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-06 16:30:39 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-06 16:30:39 +0800 |
commit | e27effde19e32ad13e48a060b713fd385c42de2b (patch) | |
tree | 69873677e5c7c08b33c4870f7353cc3088f8d9e3 /e-util | |
parent | ec2d01a3e534de0f586d021e09fd6061e97cee66 (diff) | |
download | gsoc2013-evolution-e27effde19e32ad13e48a060b713fd385c42de2b.tar.gz gsoc2013-evolution-e27effde19e32ad13e48a060b713fd385c42de2b.tar.zst gsoc2013-evolution-e27effde19e32ad13e48a060b713fd385c42de2b.zip |
init err to NULL so if there isn't an error we aren't left with an
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.
svn path=/trunk/; revision=18593
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 9 | ||||
-rw-r--r-- | e-util/e-config-listener.c | 8 |
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); |