aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/common
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-01-15 00:37:49 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-01-15 00:37:49 +0800
commit87ca42db1dcf2b0f4d095a7b0c769bfc08246e77 (patch)
tree9b3fc9be5fd4a46971ddc582257f482139eb57e0 /calendar/common
parent5dffd5377bdb30c20f22553dd1482186ff322b6a (diff)
downloadgsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar.gz
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar.bz2
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar.lz
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar.xz
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.tar.zst
gsoc2013-evolution-87ca42db1dcf2b0f4d095a7b0c769bfc08246e77.zip
check return value from e_cal_new().
2004-01-14 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'calendar/common')
-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;
}