commit c014711110b3094a961e2afe29260733a37850a3 parent a04d186bb864e1fa0860fe48fa8084729dc3ce24 Author: Paul <paul@claws-mail.org> Date: Thu, 15 Oct 2015 07:28:47 +0100 fix erroneous debug text, debug output (and style) Diffstat:
| M | src/plugins/gdata/cm_gdata_contacts.c | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/plugins/gdata/cm_gdata_contacts.c b/src/plugins/gdata/cm_gdata_contacts.c @@ -239,12 +239,12 @@ static void write_cache_to_file(void) g_node_append(contactsnode, contactnode); } - /* Actual writing and cleanup */ - xml_write_tree(rootnode, pfile->fp); - if(prefs_file_close(pfile) < 0) - debug_print("GData plugin error: Failed to write file " GDATA_CONTACTS_FILENAME "\n"); - - debug_print("GData plugin error: Wrote cache to file " GDATA_CONTACTS_FILENAME "\n"); + /* Actual writing and cleanup */ + xml_write_tree(rootnode, pfile->fp); + if (prefs_file_close(pfile) < 0) + debug_print("GData plugin error: Failed to write file " GDATA_CONTACTS_FILENAME "\n"); + else + debug_print("GData plugin: Wrote cache to file " GDATA_CONTACTS_FILENAME "\n"); /* Free XML tree */ xml_free_tree(rootnode);