aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common/authentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/common/authentication.c')
-rw-r--r--calendar/common/authentication.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index 849a2e76c3..ba0eae2893 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -42,7 +42,8 @@ auth_new_cal_from_source (ESource *source, ECalSourceType type)
ECal *cal;
cal = e_cal_new (source, type);
- e_cal_set_auth_func (cal, (ECalAuthFunc) auth_func_cb, NULL);
+ if (cal)
+ e_cal_set_auth_func (cal, (ECalAuthFunc) auth_func_cb, NULL);
return cal;
}