diff --git a/lib/loopaes/loopaes.c b/lib/loopaes/loopaes.c index 37bfa5c2..92090aab 100644 --- a/lib/loopaes/loopaes.c +++ b/lib/loopaes/loopaes.c @@ -81,7 +81,7 @@ static int hash_keys(struct crypt_device *cd, const char *hash_name; char tweak, *key_ptr; unsigned int i; - int r; + int r = 0; hash_name = hash_override ?: get_hash(key_len_output); tweak = get_tweak(keys_count); diff --git a/lib/utils_wipe.c b/lib/utils_wipe.c index 60585eaf..96dff298 100644 --- a/lib/utils_wipe.c +++ b/lib/utils_wipe.c @@ -55,7 +55,7 @@ static int crypt_wipe_special(struct crypt_device *cd, int fd, size_t bsize, size_t alignment, char *buffer, uint64_t offset, size_t size) { - int r; + int r = 0; unsigned int i; ssize_t written;