forked from pool/e2fsprogs
fcf0c12c54
Rev filesystems/22 Md5 787d7eb03cbf1ac71bfe45d5b274f9b9 2012-01-16 19:28:03 jankara 100294
35 lines
957 B
Diff
35 lines
957 B
Diff
commit 24c91184d6577271f7387962c90626c973389f00
|
|
Author: Theodore Ts'o <tytso@mit.edu>
|
|
Date: Fri Dec 16 15:36:40 2011 -0500
|
|
|
|
e2fsck: fix use of uninitialized value in the MMP code
|
|
|
|
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
|
|
|
|
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
|
|
index 00e46d0..d225026 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 f7ce8e4..a9eecd2 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;
|