diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-04-21 15:18:16 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-22 11:43:13 -0700 |
commit | e61203c2aae8656a178234bc20df2e4a5994407b (patch) | |
tree | 5308e8fe411605aec1f2b61b27f989978443c646 | |
parent | 9425b47b897e690c71a337c0c93477bfd6fa1997 (diff) | |
download | f2fs-tools-e61203c2aae8656a178234bc20df2e4a5994407b.tar.gz |
Suppress a compiler warning
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>
-rw-r--r-- | fsck/segment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/segment.c b/fsck/segment.c index fe63615..254a0d1 100644 --- a/fsck/segment.c +++ b/fsck/segment.c @@ -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; |