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/gui/alarm-notify/alarm-queue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/alarm-notify') 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 v1.2.3