aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c2
2 files changed, 9 insertions, 0 deletions
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 <rodrigo@ximian.com>
+
+ 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 <jpr@ximian.com>
* 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;