From ad4d799e778a7c31c4c10e77fac4053e71ac9a75 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 3 May 2013 14:29:45 -0700 Subject: avoid pointer comparisons in set_timezone() --- src/location-geoclue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3