Tue, 26 Mar 2019 17:59:45 +0100
some db.c fixes
dav/db.c | file | annotate | diff | comparison | revisions |
--- 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",