diff options
author | Tom Rix <trix@redhat.com> | 2022-12-30 20:53:41 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-01-06 17:44:32 +0300 |
commit | 23970a1c9475b305770fd37bebfec7a10f263787 (patch) | |
tree | 6e6ec9f61ce089349a03446c1caf22275742f5aa /fs/crypto | |
parent | 83c7423d1eb6806d13c521d1002cc1a012111719 (diff) | |
download | linux-23970a1c9475b305770fd37bebfec7a10f263787.tar.xz |
udf: initialize newblock to 0
The clang build reports this error
fs/udf/inode.c:805:6: error: variable 'newblock' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (*err < 0)
^~~~~~~~
newblock is never set before error handling jump.
Initialize newblock to 0 and remove redundant settings.
Fixes: d8b39db5fab8 ("udf: Handle error when adding extent to a file")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20221230175341.1629734-1-trix@redhat.com>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions