diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-08-05 21:58:30 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-08-05 21:58:30 +0800 |
commit | ffab9cc57fc148272da233de949b8bb726531d77 (patch) | |
tree | 77effceb723632be3e6f468a8a2ff310a37ddcde /calendar | |
parent | fb410a4f98a01358049b82d1593b97969069cc0c (diff) | |
download | gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.gz gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.bz2 gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.lz gsoc2013-evolution-ffab9cc57fc148272da233de949b8bb726531d77.tar.xz 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')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 2 |
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; |