From ffab9cc57fc148272da233de949b8bb726531d77 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 5 Aug 2002 13:58:30 +0000 Subject: Fixes the crash in #19159 2002-08-04 Rodrigo Moya Fixes the crash in #19159 * gui/alarm-notify/alarm-queue.c (create_snooze): check for NULL pointers before using them. svn path=/trunk/; revision=17697 --- calendar/ChangeLog | 7 +++++++ calendar/gui/alarm-notify/alarm-queue.c | 2 ++ 2 files changed, 9 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 5abe501ef5..470536bd62 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2002-08-04 Rodrigo Moya + + Fixes the crash in #19159 + + * gui/alarm-notify/alarm-queue.c (create_snooze): check for NULL + pointers before using them. + 2002-08-02 JP Rosevear * gui/e-week-view.c (e_week_view_init): don't warn if we can't use diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 382d733881..faa0475cf4 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -516,6 +516,8 @@ create_snooze (CompQueuedAlarms *cqa, gpointer alarm_id, int snooze_mins) gpointer new_id; orig_qa = lookup_queued_alarm (cqa, alarm_id); + if (!orig_qa) + return; t = time (NULL); t += snooze_mins * 60; -- cgit