diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-05-03 14:29:45 -0700 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-05-03 14:29:45 -0700 |
commit | ad4d799e778a7c31c4c10e77fac4053e71ac9a75 (patch) | |
tree | 204423e11b98bfdcaa634caaf458ce905d086752 | |
parent | fde3000c07a30bc55ac294c6c877f08050397d29 (diff) | |
download | ayatana-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.c | 2 |
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); |