[gnome-calendar/gnome-3-18] search-view: protect against empty component date



commit 17af33a5c6cb219d2524f2d1671c7d7ab360cb6c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Mar 8 14:14:14 2016 -0300

    search-view: protect against empty component date
    
    This would cause crashes when searching.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763166

 src/gcal-search-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 9d472f3..5efb9f2 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -381,7 +381,7 @@ make_row_for_event_data (GcalSearchView  *view,
   /* start date & time */
   if (comp_dt.tzid != NULL)
     tz = g_time_zone_new (comp_dt.tzid);
-  else if (comp_dt.value->zone != NULL)
+  else if (comp_dt.value && comp_dt.value->zone)
     tz = g_time_zone_new (icaltimezone_get_tzid ((icaltimezone*) comp_dt.value->zone));
   else
     tz = g_time_zone_new_local ();


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