mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-08 09:20:11 +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)
|
if (!vk)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
vk->key_description = NULL;
|
|
||||||
vk->keyring_key_type = INVALID_KEY;
|
vk->keyring_key_type = INVALID_KEY;
|
||||||
vk->keylength = keylength;
|
vk->keylength = keylength;
|
||||||
vk->uploaded = false;
|
|
||||||
vk->id = KEY_NOT_VERIFIED;
|
vk->id = KEY_NOT_VERIFIED;
|
||||||
vk->next = NULL;
|
|
||||||
|
|
||||||
/* keylength 0 is valid => no key */
|
/* keylength 0 is valid => no key */
|
||||||
if (vk->keylength) {
|
if (vk->keylength) {
|
||||||
|
|||||||
Reference in New Issue
Block a user