aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-03-04 23:41:36 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-03-04 23:41:36 +0800
commitbd8d2c529fe15e979dd2d33be2fa36c2358f0a96 (patch)
tree9b46520e8009a2c9355a2be9d2b869384f4920a6 /calendar/gui/calendar-config.c
parent1dd9162176deba1e158ddd5e87d218c209a3da23 (diff)
downloadgsoc2013-evolution-bd8d2c529fe15e979dd2d33be2fa36c2358f0a96.tar.gz
gsoc2013-evolution-bd8d2c529fe15e979dd2d33be2fa36c2358f0a96.tar.zst
gsoc2013-evolution-bd8d2c529fe15e979dd2d33be2fa36c2358f0a96.zip
** Fix for bug #573122
2009-03-04 Milan Crha <mcrha@redhat.com> ** Fix for bug #573122 * gui/dialogs/cal-prefs-dialog.c: (timezone_changed), (show_config): * gui/calendar-config.c: (calendar_config_get_icaltimezone): * gui/e-cal-model.c: (ecm_value_at): Do not pass NULL to icalcomponent_get_first_component. svn path=/trunk/; revision=37366
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 1f18b94458..6a7cf94ee7 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -233,8 +233,7 @@ calendar_config_get_icaltimezone (void)
zone = icaltimezone_get_builtin_timezone (location);
icalcomp = icaltimezone_get_component (zone);
-
- if (!(dl_comp = icalcomponent_get_first_component (icalcomp, ICAL_XDAYLIGHT_COMPONENT))) {
+ if (!icalcomp || !(dl_comp = icalcomponent_get_first_component (icalcomp, ICAL_XDAYLIGHT_COMPONENT))) {
g_free (location);
return zone;
}