aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/logfs/journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/journal.c b/fs/logfs/journal.c
index 7a023dbba9f..2f2e8e4fd02 100644
--- a/fs/logfs/journal.c
+++ b/fs/logfs/journal.c
@@ -263,7 +263,7 @@ static int logfs_read_segment(struct super_block *sb, u32 segno)
struct logfs_journal_header *jh = super->s_compressed_je;
u64 ofs, seg_ofs = dev_ofs(sb, segno, 0);
u32 h_ofs, last_ofs = 0;
- u16 len, datalen, last_len;
+ u16 len, datalen, last_len = 0;
int i, err;
/* search for most recent commit */