diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/calendar/libecal/e-cal-util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/calendar/libecal/e-cal-util.c b/src/calendar/libecal/e-cal-util.c index 069e7e7a0..28c8a52a0 100644 --- a/src/calendar/libecal/e-cal-util.c +++ b/src/calendar/libecal/e-cal-util.c @@ -1583,7 +1583,10 @@ e_cal_util_get_system_timezone (void) icaltimezone *zone; location = e_cal_system_timezone_get_location (); - g_return_val_if_fail (location != NULL, NULL); + + /* Can be NULL when failed to detect system time zone */ + if (!location) + return NULL; zone = icaltimezone_get_builtin_timezone (location); |