fixes false positive error when creating a sync db

Sun, 18 Sep 2016 08:56:54 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 18 Sep 2016 08:56:54 +0200
changeset 250
a2cb914f133f
parent 249
50fb9c9f6671
child 251
7534cb97b9ab

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;
         }

mercurial