]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: fix use of uninitialized value in the MMP code
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Dec 2011 20:36:40 +0000 (15:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Dec 2011 20:36:40 +0000 (15:36 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/pass1b.c

index 00e46d030aae7f89f336135100fa80180035ee4b..d22502649564eb332fd0a9c854f05ab967acb757 100644 (file)
@@ -545,7 +545,7 @@ void e2fsck_pass1(e2fsck_t ctx)
        int     i;
        __u64   max_sizes;
        ext2_filsys fs = ctx->fs;
-       ext2_ino_t      ino;
+       ext2_ino_t      ino = 0;
        struct ext2_inode *inode;
        ext2_inode_scan scan;
        char            *block_buf;
index f7ce8e47da111b07ac146574f9b01d85be7eb025..a9eecd2449627de5efd7d8e1b7f6a5b57a07f44c 100644 (file)
@@ -267,7 +267,7 @@ struct process_block_struct {
 static void pass1b(e2fsck_t ctx, char *block_buf)
 {
        ext2_filsys fs = ctx->fs;
-       ext2_ino_t ino;
+       ext2_ino_t ino = 0;
        struct ext2_inode inode;
        ext2_inode_scan scan;
        struct process_block_struct pb;