From 25994587f9c072e3243a44ca4786339085aa02e5 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 2 Mar 2012 14:13:18 -0600 Subject: use g_return_if_fail() instead of g_assert() in the new code --- src/datetime-service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3