aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/ephy-file-helpers.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a63eb752d..9d12e744f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-21 Christian Persch <chpe@cvs.gnome.org>
+
+ * lib/ephy-file-helpers.c: (ephy_file_save_xml):
+
+ Fix check for return value of xmlSaveFileFormat, _maybe_
+ fixing the bookmarks loss bug.
+
2003-09-20 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-notifiers.cpp:
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 6577bc06b..a14068ec9 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -377,7 +377,7 @@ ephy_file_save_xml (const char *xml_file, xmlDocPtr doc)
tmp_file = g_strconcat (xml_file, ".tmp", NULL);
old_file = g_strconcat (xml_file, ".old", NULL);
- if (!xmlSaveFormatFile (tmp_file, doc, 1))
+ if (xmlSaveFormatFile (tmp_file, doc, 1) <= 0)
{
g_warning ("Failed to write XML data to %s", tmp_file);
goto failed;