projects
/
platform
/
upstream
/
erofs-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059cc76
)
erofs-utils: mkfs: fix uninitialized nblocks
author
Hongzhen Luo
<hongzhen@linux.alibaba.com>
Mon, 5 Aug 2024 07:39:53 +0000
(15:39 +0800)
committer
Gao Xiang
<hsiangkao@linux.alibaba.com>
Tue, 6 Aug 2024 06:38:57 +0000
(14:38 +0800)
Coverity-id: 502376
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Reviewed-by: Sandeep Dhavale <dhavale@google.com>
Link:
https://lore.kernel.org/r/20240805073953.2864289-1-hongzhen@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
mkfs/main.c
patch
|
blob
|
history
diff --git
a/mkfs/main.c
b/mkfs/main.c
index e39bddb2755a31950a3de532565853f6eb4c10fe..aba5ce4b868675475538c8b0597eb61d48acebbe 100644
(file)
--- a/
mkfs/main.c
+++ b/
mkfs/main.c
@@
-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;