Tom Rix 23970a1c94 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>
2023-01-06 15:44:32 +01:00
..
2022-09-11 20:26:07 -07:00
2022-09-11 20:26:07 -07:00
2022-09-12 13:03:20 +02:00
2023-01-06 15:44:32 +01:00
2021-10-18 14:43:23 -06:00
\n
2022-12-12 20:32:50 -08:00
2021-08-11 16:54:44 +02:00
2021-08-12 16:07:09 +02:00