mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
Suppress a compiler warning
commit e61203c2aae8656a178234bc20df2e4a5994407b category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- Suppress the following compiler warning: segment.c:698:12: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized] 698 | if (n < 0) | ^ Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
a86f797930
commit
94fcae1bcf
@ -555,7 +555,7 @@ exit:
|
||||
|
||||
int f2fs_build_file(struct f2fs_sb_info *sbi, struct dentry *de)
|
||||
{
|
||||
int fd, n;
|
||||
int fd, n = -1;
|
||||
pgoff_t off = 0;
|
||||
u8 buffer[BLOCK_SZ];
|
||||
struct node_info ni;
|
||||
|
Loading…
Reference in New Issue
Block a user