aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-08-05 21:58:30 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-08-05 21:58:30 +0800
commitffab9cc57fc148272da233de949b8bb726531d77 (patch)
tree77effceb723632be3e6f468a8a2ff310a37ddcde /calendar/gui/alarm-notify
parentfb410a4f98a01358049b82d1593b97969069cc0c (diff)
downloadgsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.gz
gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.zst
gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.zip
Fixes the crash in #19159
2002-08-04 Rodrigo Moya <rodrigo@ximian.com> 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
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c2
1 files changed, 2 insertions, 0 deletions
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;