diff options
author | JP Rosevear <jpr@novell.com> | 2004-11-26 21:12:08 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-11-26 21:12:08 +0800 |
commit | 686e2dabe9ecfb69423dc50f84d012eb06b98dde (patch) | |
tree | 353910863bfaa43fba1adeb1e9dfbee5e0ace3de /calendar/gui/alarm-notify | |
parent | 23adb07f7d1634735a72233c2f169e83af2ed871 (diff) | |
download | gsoc2013-evolution-686e2dabe9ecfb69423dc50f84d012eb06b98dde.tar.gz gsoc2013-evolution-686e2dabe9ecfb69423dc50f84d012eb06b98dde.tar.zst gsoc2013-evolution-686e2dabe9ecfb69423dc50f84d012eb06b98dde.zip |
prevent crash if there is no description
2004-11-26 JP Rosevear <jpr@novell.com>
* gui/alarm-notify/alarm-queue.c (display_notification): prevent
crash if there is no description
svn path=/trunk/; revision=27994
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 028cd8d00a..5d7b6b2078 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -949,11 +949,15 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa, e_cal_component_get_description_list (comp, &text_list); - text = *((ECalComponentText *)text_list->data); - if (text.value) - description = text.value; - else - description = _("No description available."); + if (text_list) { + text = *((ECalComponentText *)text_list->data); + if (text.value) + description = text.value; + else + description = _("No description available."); + } else { + description = _("No description available."); + } e_cal_component_free_text_list (text_list); |