diff options
author | Ted Gould <ted@gould.cx> | 2011-10-23 16:54:15 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-10-23 16:54:15 -0500 |
commit | 59ea5c3b88d4a3df98fd12685b79d9cb945bbc2c (patch) | |
tree | 752d1c2846905c3d38963c077639125ba38440b6 /src/datetime-service.c | |
parent | ba87e5cb673992cee0fcb0bb3c90523974836a30 (diff) | |
download | ayatana-indicator-datetime-59ea5c3b88d4a3df98fd12685b79d9cb945bbc2c.tar.gz ayatana-indicator-datetime-59ea5c3b88d4a3df98fd12685b79d9cb945bbc2c.tar.bz2 ayatana-indicator-datetime-59ea5c3b88d4a3df98fd12685b79d9cb945bbc2c.zip |
Fixing a bad check for GeoIP object validity. Adding an error check which is better anyway.
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r-- | src/datetime-service.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c index ed8c8e3..73a3361 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -1404,7 +1404,12 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar * geo_master = client; - if (geo_master != NULL) { + if (error != NULL) { + g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message); + return; + } + + if (geo_master == NULL) { g_warning(_("Unable to get a GeoClue client! Geolocation based timezone support will not be available.")); return; } |