aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-09-21 18:42:29 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-21 18:42:29 +0800
commitac9caa4e3dac1ca802bc5e8752cd403ebf229b6c (patch)
tree0a174a079ea88e1b665c9a164ee48f88d4d0d2f5 /lib/ephy-file-helpers.c
parent95f71124ff3c92d1b7384c0a96dec474e54335e9 (diff)
downloadgsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar.gz
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar.bz2
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar.lz
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar.xz
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.tar.zst
gsoc2013-epiphany-ac9caa4e3dac1ca802bc5e8752cd403ebf229b6c.zip
Fix check for return value of xmlSaveFileFormat, _maybe_ ixing the
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_ ixing the bookmarks loss bug.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c2
1 files changed, 1 insertions, 1 deletions
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;