diff options
author | Milan Broz <gmazyland@gmail.com> | 2023-12-19 13:40:29 +0100 |
---|---|---|
committer | Milan Broz <gmazyland@gmail.com> | 2023-12-19 13:40:29 +0100 |
commit | f87f6226aa4aabc131f59c801a784ccd6286e9e0 (patch) | |
tree | 936f5b188e431b8f8120be6235798883488c8a39 | |
parent | cd576666fc477e09b2464beac1f8bd6c07e5cd64 (diff) | |
download | cryptsetup-f87f6226aa4aabc131f59c801a784ccd6286e9e0.tar.gz |
opal: Fix benign gcc warning for possible uninitialized value.
-rw-r--r-- | lib/luks2/hw_opal/hw_opal.c | 2 |
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; |