diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-09-21 18:34:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-21 18:34:55 +0800 |
commit | 81791356a8f74dad96b53367ae27c88b8f2f4262 (patch) | |
tree | 9aa30b65ece0d70040ec8931c4ae889d1344f340 /lib/ephy-file-helpers.c | |
parent | 97bebf571d335e616028401389f36118e03f043d (diff) | |
download | gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar.gz gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar.bz2 gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar.lz gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar.xz gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.tar.zst gsoc2013-epiphany-81791356a8f74dad96b53367ae27c88b8f2f4262.zip |
Fix check for return value of xmlSaveFileFormat, _maybe_ fixing 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_
fixing the bookmarks loss bug.
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r-- | lib/ephy-file-helpers.c | 2 |
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; |