diff --git a/src/kits/app/Key.cpp b/src/kits/app/Key.cpp index a9d8d16e9e..ffe5374c30 100644 --- a/src/kits/app/Key.cpp +++ b/src/kits/app/Key.cpp @@ -32,6 +32,7 @@ CompareLists(BObjectList a, BObjectList b) BKey::BKey() { + Unset(); } @@ -44,6 +45,7 @@ BKey::BKey(BKeyPurpose purpose, const char* identifier, BKey::BKey(BKey& other) { + *this = other; } @@ -63,6 +65,7 @@ status_t BKey::SetTo(BKeyPurpose purpose, const char* identifier, const char* secondaryIdentifier, const uint8* data, size_t length) { + fCreationTime = 0; SetPurpose(purpose); SetIdentifier(identifier); SetSecondaryIdentifier(secondaryIdentifier);