aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model-calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-model-calendar.c')
-rw-r--r--calendar/gui/e-cal-model-calendar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c
index cc1e5a46e0..b24d96a40d 100644
--- a/calendar/gui/e-cal-model-calendar.c
+++ b/calendar/gui/e-cal-model-calendar.c
@@ -329,7 +329,10 @@ cal_model_calendar_set_value_at (ETableModel *etm,
const gchar *uid = NULL;
e_cal_component_get_uid (comp, &uid);
- if (e_cal_client_get_object_sync (comp_data->client, uid, NULL, &icalcomp, NULL, NULL) && icalcomp) {
+ e_cal_client_get_object_sync (
+ comp_data->client, uid, NULL,
+ &icalcomp, NULL, NULL);
+ if (icalcomp != NULL) {
send_comp = e_cal_component_new ();
if (!e_cal_component_set_icalcomponent (send_comp, icalcomp)) {
icalcomponent_free (icalcomp);