Commit 9330785
f2fs-tools: fix to avoid uninitialized variable access
Fix below compile warning:
CC fibmap.o
In function ‘stat_bdev’,
inlined from ‘main’ at fibmap.c:171:2:
fibmap.c:123:9: warning: ‘start_lba’ may be used uninitialized [-Wmaybe-uninitialized]
123 | printf("start_lba = %u\n", *start_lba);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fibmap.c: In function ‘main’:
fibmap.c:143:15: note: ‘start_lba’ was declared here
143 | __u32 start_lba;
| ^~~~~~~~~
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>1 parent d773784 commit 9330785
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments