aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datetime-service.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 7d35a38..e7b20fb 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -513,7 +513,10 @@ geo_create_client (GeoclueMaster * master, GeoclueMasterClient * client, gchar *
geo_master = client;
- g_return_if_fail(geo_master != NULL);
+ if (geo_master != NULL) {
+ g_warning("Unable to get a GeoClue client! Geolocation based timezone support will not be available.");
+ return;
+ }
g_object_ref(G_OBJECT(geo_master));