2021-08-06 09:59:06

by Lukas Czerner

[permalink] [raw]
Subject: [PATCH 2/7] ext2fs: initialize retval before using it

Signed-off-by: Lukas Czerner <[email protected]>
---
lib/ext2fs/gen_bitmap64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c
index a2b89898..d9809084 100644
--- a/lib/ext2fs/gen_bitmap64.c
+++ b/lib/ext2fs/gen_bitmap64.c
@@ -948,7 +948,7 @@ errcode_t ext2fs_count_used_clusters(ext2_filsys fs, blk64_t start,
{
blk64_t next;
blk64_t tot_set = 0;
- errcode_t retval;
+ errcode_t retval = 0;

while (start < end) {
retval = ext2fs_find_first_set_block_bitmap2(fs->block_map,
--
2.31.1


2021-08-10 15:06:32

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH 2/7] ext2fs: initialize retval before using it

On Fri, Aug 06, 2021 at 11:58:15AM +0200, Lukas Czerner wrote:
> Signed-off-by: Lukas Czerner <[email protected]>

Applied, thanks.

- Ted