mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Correct checks for containers' emptiness
This commit is contained in:
committed by
Jonathan White
parent
fc930bae69
commit
e81841550b
@@ -267,7 +267,7 @@ void TestKeePass1Reader::reopenDatabase(QSharedPointer<Database> db,
|
||||
QVERIFY(buffer.seek(0));
|
||||
|
||||
auto key = QSharedPointer<CompositeKey>::create();
|
||||
if (!password.isNull()) {
|
||||
if (!password.isEmpty()) {
|
||||
key->addKey(QSharedPointer<PasswordKey>::create(password));
|
||||
}
|
||||
if (!keyfileName.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user