[evolution/gnome-3-22] Fix a crash when deleting a meeting without DTEND
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Fix a crash when deleting a meeting without DTEND
- Date: Tue, 13 Dec 2016 13:35:21 +0000 (UTC)
commit 82459d0cf6eb07b94e978382e22e41808ead0f3a
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 13 14:32:56 2016 +0100
Fix a crash when deleting a meeting without DTEND
calendar/gui/e-cal-dialogs.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-cal-dialogs.c b/calendar/gui/e-cal-dialogs.c
index 10e8de4..80b3355 100644
--- a/calendar/gui/e-cal-dialogs.c
+++ b/calendar/gui/e-cal-dialogs.c
@@ -46,9 +46,16 @@ is_past_event (ECalComponent *comp)
ECalComponentDateTime end_date;
gboolean res;
- if (!comp) return TRUE;
+ if (!comp)
+ return TRUE;
+
+ end_date.value = NULL;
e_cal_component_get_dtend (comp, &end_date);
+
+ if (!end_date.value)
+ return FALSE;
+
res = icaltime_compare_date_only (
*end_date.value,
icaltime_current_time_with_zone (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]