aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-05 19:43:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-05 19:43:01 +0800
commita4ad161359ba1a70f898eabd2c35454c69a1700b (patch)
tree5bb4e0c5a1b691469edf7a7b2403da65efbd4cbf /modules
parent5d4f9d8c2abb80a0390953f2331a38f8f487e0a4 (diff)
downloadgsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar.gz
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar.bz2
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar.lz
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar.xz
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.tar.zst
gsoc2013-evolution-a4ad161359ba1a70f898eabd2c35454c69a1700b.zip
ESourceWeather: Synchronize with ESourceWeather in E-D-S.
Diffstat (limited to 'modules')
-rw-r--r--modules/cal-config-weather/e-source-weather.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/cal-config-weather/e-source-weather.c b/modules/cal-config-weather/e-source-weather.c
index 4ba306408a..fb0ede7aa9 100644
--- a/modules/cal-config-weather/e-source-weather.c
+++ b/modules/cal-config-weather/e-source-weather.c
@@ -212,21 +212,17 @@ void
e_source_weather_set_location (ESourceWeather *extension,
const gchar *location)
{
- gchar *new_location;
-
g_return_if_fail (E_IS_SOURCE_WEATHER (extension));
g_mutex_lock (&extension->priv->property_lock);
- new_location = e_util_strdup_strip (location);
- if (g_strcmp0 (extension->priv->location, new_location) == 0) {
+ if (g_strcmp0 (extension->priv->location, location) == 0) {
g_mutex_unlock (&extension->priv->property_lock);
- g_free (new_location);
return;
}
g_free (extension->priv->location);
- extension->priv->location = new_location;
+ extension->priv->location = e_util_strdup_strip (location);
g_mutex_unlock (&extension->priv->property_lock);