diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-02 21:47:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-02 21:47:42 +0800 |
commit | d8873cc1ea89e651fd59364b189ebbd690563ae2 (patch) | |
tree | 56c673c5662690b41d75418b4a3dbc3e6e33acdf /embed/ephy-history.c | |
parent | 7c920bceca80ce1d7a7cab35098e1150955c1954 (diff) | |
download | gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar.gz gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar.bz2 gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar.lz gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar.xz gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.tar.zst gsoc2013-epiphany-d8873cc1ea89e651fd59364b189ebbd690563ae2.zip |
Fix recovery from corrupted bookmarks and history files.
2003-12-02 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-history.c: (ephy_history_load):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_load):
Fix recovery from corrupted bookmarks and history files.
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r-- | embed/ephy-history.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c index 18092876f..10d2f898f 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -209,7 +209,11 @@ ephy_history_load (EphyHistory *eb) return; doc = xmlParseFile (eb->priv->xml_file); - g_return_if_fail (doc != NULL); + if (doc == NULL) + { + g_warning ("Failed to load history from %s!\n", eb->priv->xml_file); + return; + } root = xmlDocGetRootElement (doc); |