mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-10 06:05:49 -05:00
Fix CompositKey self assignment.
This commit is contained in:
parent
f767a098d6
commit
7e9343c697
2 changed files with 9 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ void TestKeys::testComposite()
|
|||
*compositeKey4 = *compositeKey3;
|
||||
QCOMPARE(compositeKey3->rawKey(), compositeKey4->rawKey());
|
||||
|
||||
// test self-assignment
|
||||
*compositeKey3 = *compositeKey3;
|
||||
QCOMPARE(compositeKey3->rawKey(), compositeKey4->rawKey());
|
||||
|
||||
delete compositeKey3;
|
||||
delete compositeKey4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue