aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-11-26 21:12:08 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-11-26 21:12:08 +0800
commit686e2dabe9ecfb69423dc50f84d012eb06b98dde (patch)
tree353910863bfaa43fba1adeb1e9dfbee5e0ace3de
parent23adb07f7d1634735a72233c2f169e83af2ed871 (diff)
downloadgsoc2013-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
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c14
2 files changed, 14 insertions, 5 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 566e77b4a9..dbad295e2d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-26 JP Rosevear <jpr@novell.com>
+
+ * gui/alarm-notify/alarm-queue.c (display_notification): prevent
+ crash if there is no description
+
2004-11-25 Harish Krishnaswamy <kharish@novell.com>
* gui/calendar-component.c:
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);