From 650006c2b232f9703a7777f20c0aa8470de7feab Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 17 Sep 2003 22:07:09 +0000 Subject: Don't abort on missing ephy-favicon-cache.xml file. Fixes bug #121483. 2003-09-18 Christian Persch * embed/ephy-favicon-cache.c: (ephy_favicon_cache_load): Don't abort on missing ephy-favicon-cache.xml file. Fixes bug #121483. --- ChangeLog | 7 +++++++ embed/ephy-favicon-cache.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f40c0e57..3ddbd9707 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-09-18 Christian Persch + + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_load): + + Don't abort on missing ephy-favicon-cache.xml file. + Fixes bug #121483. + 2003-09-02 Gediminas Paulauskas * configure.in: Added lt to ALL_LINGUAS. diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c index d5b7374b3..8bd8ccf8d 100644 --- a/embed/ephy-favicon-cache.c +++ b/embed/ephy-favicon-cache.c @@ -129,7 +129,11 @@ ephy_favicon_cache_load (EphyFaviconCache *eb) return; doc = xmlParseFile (eb->priv->xml_file); - g_assert (doc != NULL); + if (doc == NULL) + { + g_warning ("Failed to load favicon cache.\n"); + return; + } root = xmlDocGetRootElement (doc); -- cgit v1.2.3