From 87ca42db1dcf2b0f4d095a7b0c769bfc08246e77 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 14 Jan 2004 16:37:49 +0000 Subject: check return value from e_cal_new(). 2004-01-14 Rodrigo Moya * common/authentication.c (auth_new_cal_from_source): check return value from e_cal_new(). * gui/gnome-cal.c (gnome_calendar_construct): if there is no default tasks folder, don't create the ECal from it. svn path=/trunk/; revision=24219 --- calendar/common/authentication.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/common/authentication.c') 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; } -- cgit v1.2.3