}
} else {
ECalComponentDateTime datetime;
- icaltimezone *start_zone;
+ icaltimezone *start_zone = NULL;
struct instances_info *instances_hold;
/* Get the start timezone */
e_cal_component_get_dtstart (comp, &datetime);
- e_cal_client_get_timezone_sync (client, datetime.tzid, &start_zone, NULL, NULL);
+ if (datetime.tzid)
+ e_cal_client_get_timezone_sync (client, datetime.tzid, &start_zone, NULL, NULL);
+ else
+ start_zone = NULL;
e_cal_component_free_datetime (&datetime);
instances_hold = g_new0 (struct instances_info, 1);
gboolean result;
GSList *instances = NULL;
ECalComponentDateTime datetime;
- icaltimezone *start_zone;
+ icaltimezone *start_zone = NULL;
struct instances_info *instances_hold;
gboolean is_single_instance = FALSE;
/* Get the start timezone */
e_cal_component_get_dtstart (comp, &datetime);
- e_cal_client_get_timezone_sync (client, datetime.tzid, &start_zone, NULL, NULL);
+ if (datetime.tzid)
+ e_cal_client_get_timezone_sync (client, datetime.tzid, &start_zone, NULL, NULL);
+ else
+ start_zone = NULL;
e_cal_component_free_datetime (&datetime);
instances_hold = g_new0 (struct instances_info, 1);
}
} else {
ECalComponentDateTime datetime;
- icaltimezone *start_zone;
+ icaltimezone *start_zone = NULL;
struct instances_info *instances_hold;
/* Get the start timezone */
e_cal_component_get_dtstart (comp, &datetime);
- e_cal_get_timezone (ecal, datetime.tzid, &start_zone, NULL);
+ if (datetime.tzid)
+ e_cal_get_timezone (ecal, datetime.tzid, &start_zone, NULL);
+ else
+ start_zone = NULL;
e_cal_component_free_datetime (&datetime);
instances_hold = g_new0 (struct instances_info, 1);
gboolean result;
GList *instances = NULL;
ECalComponentDateTime datetime;
- icaltimezone *start_zone;
+ icaltimezone *start_zone = NULL;
struct instances_info *instances_hold;
gboolean is_single_instance = FALSE;
/* Get the start timezone */
e_cal_component_get_dtstart (comp, &datetime);
- e_cal_get_timezone (ecal, datetime.tzid, &start_zone, NULL);
+ if (datetime.tzid)
+ e_cal_get_timezone (ecal, datetime.tzid, &start_zone, NULL);
+ else
+ start_zone = NULL;
e_cal_component_free_datetime (&datetime);
instances_hold = g_new0 (struct instances_info, 1);
ForeachTZIDCallbackData *data = cbdata;
ECalPrivate *priv;
const gchar *tzid;
- icaltimezone *zone;
+ icaltimezone *zone = NULL;
icalcomponent *vtimezone_comp;
gchar *vtimezone_as_string;