aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datetime-service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 710b7d6..c7b2f69 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -169,9 +169,9 @@ update_location_menu_items (void)
if (get_greeter_mode ())
return;
- g_assert (locations_separator != NULL);
- g_assert (geo_location != NULL);
- g_assert (current_location != NULL);
+ g_return_if_fail (locations_separator != NULL);
+ g_return_if_fail (geo_location != NULL);
+ g_return_if_fail (current_location != NULL);
GSList * visible_locations = NULL;
gchar ** locations = g_settings_get_strv(conf, SETTINGS_LOCATIONS_S);