Sun, 18 Sep 2016 08:56:54 +0200
fixes false positive error when creating a sync db
dav/db.c | file | annotate | diff | comparison | revisions |
--- a/dav/db.c Sun Jul 17 10:40:15 2016 +0200 +++ b/dav/db.c Sun Sep 18 08:56:54 2016 +0200 @@ -60,7 +60,7 @@ xmlDoc *doc = doc = xmlNewDoc(BAD_CAST "1.0"); xmlNode *root = xmlNewNode(NULL, BAD_CAST "directory"); xmlDocSetRootElement(doc, root); - if(!xmlSaveFormatFileEnc(db_file, doc, "UTF-8", 1) != -1) { + if(!xmlSaveFormatFileEnc(db_file, doc, "UTF-8", 1) == -1) { destroy_db(db); db = NULL; }