aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2023-12-19 13:40:29 +0100
committerMilan Broz <gmazyland@gmail.com>2023-12-19 13:40:29 +0100
commitf87f6226aa4aabc131f59c801a784ccd6286e9e0 (patch)
tree936f5b188e431b8f8120be6235798883488c8a39
parentcd576666fc477e09b2464beac1f8bd6c07e5cd64 (diff)
downloadcryptsetup-f87f6226aa4aabc131f59c801a784ccd6286e9e0.tar.gz
opal: Fix benign gcc warning for possible uninitialized value.
-rw-r--r--lib/luks2/hw_opal/hw_opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/luks2/hw_opal/hw_opal.c b/lib/luks2/hw_opal/hw_opal.c
index c5591aba..31ef87ed 100644
--- a/lib/luks2/hw_opal/hw_opal.c
+++ b/lib/luks2/hw_opal/hw_opal.c
@@ -290,7 +290,7 @@ static int opal_range_check_attributes_fd(struct crypt_device *cd,
{
int r;
struct opal_lr_status *lrs;
- uint32_t opal_block_bytes;
+ uint32_t opal_block_bytes = 0;
uint64_t offset, length;
bool read_locked, write_locked;