aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gnome-cal.c')
-rw-r--r--calendar/gnome-cal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c
index a71e7fb343..e1c300071d 100644
--- a/calendar/gnome-cal.c
+++ b/calendar/gnome-cal.c
@@ -74,7 +74,8 @@ void
gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time)
{
GtkWidget *current = get_current_page (gcal);
- g_assert (new_time != -1);
+
+ g_return_if_fail (new_time != -1);
if (current == gcal->day_view)
gncal_day_panel_set (GNCAL_DAY_PANEL (gcal->day_view), new_time);