aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-05-03 14:29:45 -0700
committerCharles Kerr <charles.kerr@canonical.com>2013-05-03 14:29:45 -0700
commitad4d799e778a7c31c4c10e77fac4053e71ac9a75 (patch)
tree204423e11b98bfdcaa634caaf458ce905d086752
parentfde3000c07a30bc55ac294c6c877f08050397d29 (diff)
downloadayatana-indicator-datetime-ad4d799e778a7c31c4c10e77fac4053e71ac9a75.tar.gz
ayatana-indicator-datetime-ad4d799e778a7c31c4c10e77fac4053e71ac9a75.tar.bz2
ayatana-indicator-datetime-ad4d799e778a7c31c4c10e77fac4053e71ac9a75.zip
avoid pointer comparisons in set_timezone()
-rw-r--r--src/location-geoclue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location-geoclue.c b/src/location-geoclue.c
index 2e57f39..87358fb 100644
--- a/src/location-geoclue.c
+++ b/src/location-geoclue.c
@@ -52,7 +52,7 @@ set_timezone (IndicatorDatetimeLocationGeoclue * self, const gchar * timezone)
{
priv_t * p = self->priv;
- if (p->timezone != timezone)
+ if (g_strcmp0 (p->timezone, timezone))
{
g_free (p->timezone);
p->timezone = g_strdup (timezone);