# HG changeset patch # User Olaf Wintermann # Date 1553619585 -3600 # Node ID abfc943f09ed68b2720be2b7efc8fe7e7c9d25d6 # Parent 877f7c4a203b7792f50424335b1751eeb8e5a7b9 some db.c fixes diff -r 877f7c4a203b -r abfc943f09ed dav/db.c --- a/dav/db.c Tue Mar 26 17:30:34 2019 +0100 +++ b/dav/db.c Tue Mar 26 17:59:45 2019 +0100 @@ -153,7 +153,7 @@ const char *text = (const char*)xmlTextReaderConstValue(reader); if(field == 0) { current_part->hash = strdup(text); - } else if(field = 1) { + } else if(field == 1) { current_part->etag = strdup(text); } } @@ -426,7 +426,7 @@ } } - if(settings & DB_STORE_MODE == DB_STORE_MODE) { + if((settings & DB_STORE_MODE) == DB_STORE_MODE) { r = xmlTextWriterWriteFormatElement( writer, BAD_CAST "mode", @@ -439,7 +439,7 @@ } } - if(settings & DB_STORE_OWNER == DB_STORE_OWNER) { + if((settings & DB_STORE_OWNER) == DB_STORE_OWNER) { r = xmlTextWriterWriteFormatElement( writer, BAD_CAST "uid",