Skip to content

Commit

Permalink
Avoid hitting assert on XML export
Browse files Browse the repository at this point in the history
* Fixes #11365
  • Loading branch information
droidmonkey committed Oct 15, 2024
1 parent 0288188 commit 4f8c204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/format/KdbxWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ void KdbxWriter::extractDatabase(QByteArray& xmlOutput, Database* db)
QBuffer buffer;
buffer.setBuffer(&xmlOutput);
buffer.open(QIODevice::WriteOnly);
KdbxXmlWriter writer(db->formatVersion());
KdbxXmlWriter::BinaryIdxMap idxMap;
KdbxXmlWriter writer(db->formatVersion(), idxMap);
writer.disableInnerStreamProtection(true);
writer.writeDatabase(&buffer, db);
}
Expand Down

0 comments on commit 4f8c204

Please sign in to comment.