mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Drop redundant member initialization in volume key.
The memory is already initialized to zeroes after allocation.
This commit is contained in:
@@ -24,12 +24,9 @@ struct volume_key *crypt_alloc_volume_key(size_t keylength, const char *key)
|
||||
if (!vk)
|
||||
return NULL;
|
||||
|
||||
vk->key_description = NULL;
|
||||
vk->keyring_key_type = INVALID_KEY;
|
||||
vk->keylength = keylength;
|
||||
vk->uploaded = false;
|
||||
vk->id = KEY_NOT_VERIFIED;
|
||||
vk->next = NULL;
|
||||
|
||||
/* keylength 0 is valid => no key */
|
||||
if (vk->keylength) {
|
||||
|
||||
Reference in New Issue
Block a user