erofs-utils: mkfs: fix uninitialized nblocks
PATCH 1/1 erofs-utils: mkfs: fix uninitialized nblocks
Coverity-id: 502376
Signed-off-by Hongzhen Luo <[email protected]>
--- mkfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mkfs/main.c +1 -1
@@ -1142,7 +1142,7 @@ int main(int argc, char **argv)int err =0 ;struct erofs_buffer_head *sb_bh;struct erofs_inode *root =NULL ; -erofs_blk_t nblocks; +erofs_blk_t nblocks =0 ;struct timeval t;FILE *packedfile =NULL ;FILE *blklst =NULL ;
Signature · 1 line
2.43.5
Reviewed-by Sandeep Dhavale <[email protected]>
Thanks,
Sandeep.