diff options
author | Mark McLoughlin <mark@skynet.ie> | 2004-03-30 14:58:48 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2004-03-30 14:58:48 +0000 |
commit | 3eb1dec43e409eb7f506c7fda516c1b9d26fb4da (patch) | |
tree | 9f24aedb39335a52599aa1817bbe9ddf478cc149 | |
parent | 750df964280a822d409d2a9790706d437ec5f63e (diff) | |
download | gconf-3eb1dec43e409eb7f506c7fda516c1b9d26fb4da.tar.gz |
don't convert the value into a string and then do nothing with it.
2004-03-24 Mark McLoughlin <mark@skynet.ie>
* gconf/gconf-database.c: (impl_ConfigDatabase_set): don't
convert the value into a string and then do nothing with it.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gconf/gconf-database.c | 16 |
2 files changed, 13 insertions, 8 deletions
@@ -1,4 +1,9 @@ 2004-03-24 Mark McLoughlin <mark@skynet.ie> + + * gconf/gconf-database.c: (impl_ConfigDatabase_set): don't + convert the value into a string and then do nothing with it. + +2004-03-24 Mark McLoughlin <mark@skynet.ie> * configure.in: kill the message-of-doom. diff --git a/gconf/gconf-database.c b/gconf/gconf-database.c index 9bba46ef..4422268f 100644 --- a/gconf/gconf-database.c +++ b/gconf/gconf-database.c @@ -222,7 +222,6 @@ impl_ConfigDatabase_set(PortableServer_Servant servant, CORBA_Environment * ev) { GConfDatabase *db = (GConfDatabase*) servant; - gchar* str; GConfValue* val; GError* error = NULL; @@ -243,15 +242,16 @@ impl_ConfigDatabase_set(PortableServer_Servant servant, return; } - str = gconf_value_to_string(val); - #if 0 - /* reduce traffice to the logfile */ - gconf_log(GCL_DEBUG, "Received request to set key `%s' to `%s'", key, str); -#endif - - g_free(str); + { + gchar* str = gconf_value_to_string(val); + /* reduce traffice to the logfile */ + gconf_log(GCL_DEBUG, "Received request to set key `%s' to `%s'", key, str); + + g_free(str); + } +#endif gconf_database_set(db, key, val, value, &error); |