aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-15 15:28:45 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-15 15:28:45 +0800
commitc5136af440bb5d7b5c9103ec61070ae3776edc19 (patch)
tree5a3ba0768521d453c20df109494713588bf9d832 /mail/em-format-html.c
parent9479a616f6b2de401b9f32db4ac568ebe0cede53 (diff)
downloadgsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar.gz
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar.bz2
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar.lz
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar.xz
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.tar.zst
gsoc2013-evolution-c5136af440bb5d7b5c9103ec61070ae3776edc19.zip
** See bug #52891.
2004-01-15 Not Zed <NotZed@Ximian.com> ** See bug #52891. * em-format-html.c (em_format_html_get_type): protect against http cache not being able to be created. svn path=/trunk/; revision=24236
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c6
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;