aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-12-16 15:36:40 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-12-16 15:36:40 -0500
commit24c91184d6577271f7387962c90626c973389f00 (patch)
tree27bf759c61a85c462abfa23a14629c6591064f42
parentba37bb704f4ab2631a39c32b35d6bb339e17b293 (diff)
downloadandroid_external_e2fsprogs-24c91184d6577271f7387962c90626c973389f00.tar.gz
android_external_e2fsprogs-24c91184d6577271f7387962c90626c973389f00.tar.bz2
android_external_e2fsprogs-24c91184d6577271f7387962c90626c973389f00.zip
e2fsck: fix use of uninitialized value in the MMP code
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--e2fsck/pass1.c2
-rw-r--r--e2fsck/pass1b.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index 00e46d03..d2250264 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 f7ce8e47..a9eecd24 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;