diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-03-02 14:13:18 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-03-02 14:13:18 -0600 |
commit | 25994587f9c072e3243a44ca4786339085aa02e5 (patch) | |
tree | 8ef122cce2f2f92b1efa32fa38fc57c98788cc9d | |
parent | ece0242ddfa2e79eebdc70a1c494a82640ee7fdc (diff) | |
download | ayatana-indicator-datetime-25994587f9c072e3243a44ca4786339085aa02e5.tar.gz ayatana-indicator-datetime-25994587f9c072e3243a44ca4786339085aa02e5.tar.bz2 ayatana-indicator-datetime-25994587f9c072e3243a44ca4786339085aa02e5.zip |
use g_return_if_fail() instead of g_assert() in the new code
-rw-r--r-- | src/datetime-service.c | 6 |
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); |