Fix warning about unitialized passwordLen.

THis is false positive, but fix is trivial.
This commit is contained in:
Milan Broz
2024-07-09 23:10:34 +02:00
parent 9c47812904
commit 35a9f08062

View File

@@ -1493,7 +1493,7 @@ int luksFormat(struct crypt_device **r_cd, char **r_password, size_t *r_password
const char *header_device, *type;
char *msg = NULL, *key = NULL, *password = NULL;
char cipher [MAX_CIPHER_LEN], cipher_mode[MAX_CIPHER_LEN], integrity[MAX_CIPHER_LEN];
size_t passwordLen, signatures = 0;
size_t passwordLen = 0, signatures = 0;
struct crypt_device *cd = NULL;
struct crypt_params_luks1 params1 = {
.hash = ARG_STR(OPT_HASH_ID) ?: DEFAULT_LUKS1_HASH,