From: Theodore Ts'o Date: Fri, 16 Dec 2011 20:36:40 +0000 (-0500) Subject: e2fsck: fix use of uninitialized value in the MMP code X-Git-Tag: v1.42.1~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24c91184d6577271f7387962c90626c973389f00;p=thirdparty%2Fe2fsprogs.git e2fsck: fix use of uninitialized value in the MMP code Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index 00e46d030..d22502649 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -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; diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c index f7ce8e47d..a9eecd244 100644 --- a/e2fsck/pass1b.c +++ b/e2fsck/pass1b.c @@ -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;