[evolution/gnome-2-26] Bug #579779 - No crash when updating repeating event



commit ed392614fbd13688052074d8d22d5adf74f8e56b
Author: Milan Crha <mcrha redhat com>
Date:   Thu May 21 12:49:13 2009 +0200

    Bug #579779 - No crash when updating repeating event
---
 calendar/gui/comp-util.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index 57704da..53fdace 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -820,8 +820,7 @@ comp_util_sanitize_recurrence_master (ECalComponent *comp, ECal *client)
 	e_cal_component_get_recurid (comp, &rid);
 	e_cal_component_get_dtstart (comp, &sdt);
 
-	if (icaltime_compare_date_only (*rid.datetime.value, *sdt.value) == 0)
-	{
+	if (rid.datetime.value && sdt.value && icaltime_compare_date_only (*rid.datetime.value, *sdt.value) == 0) {
 		ECalComponentDateTime msdt, medt, edt;
 		int *sequence;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]