diff options
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 44afe282d8..482b0191d5 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -231,8 +231,10 @@ em_format_html_get_type(void) path = alloca(strlen(base_directory)+16); sprintf(path, "%s/cache", base_directory); emfh_http_cache = camel_data_cache_new(path, 0, NULL); - camel_data_cache_set_expire_age(emfh_http_cache, 24*60*60); - camel_data_cache_set_expire_access(emfh_http_cache, 2*60*60); + if (emfh_http_cache) { + camel_data_cache_set_expire_age(emfh_http_cache, 24*60*60); + camel_data_cache_set_expire_access(emfh_http_cache, 2*60*60); + } } return type; |