void e2fsck_pass1_run(e2fsck_t ctx)
{
- int i;
ext2_filsys fs = ctx->fs;
ext2_ino_t ino = 0;
struct ext2_inode *inode = NULL;
dgrp_t ra_group = 0;
struct ea_quota ea_ibody_quota;
struct process_inode_block *inodes_to_process;
- int process_inode_count, check_mmp;
+ int process_inode_count, check_mmp = 0;
e2fsck_t global_ctx = ctx->global_ctx ? ctx->global_ctx : ctx;
int inode_exp = 0;
void *ehp;
#ifdef WORDS_BIGENDIAN
__u32 tmp_block[EXT2_N_BLOCKS];
+ int i;
for (i = 0; i < EXT2_N_BLOCKS; i++)
tmp_block[i] = ext2fs_swab32(inode->i_block[i]);
unsigned char *frag, *fsize;
struct problem_context pctx;
problem_t problem = 0;
- __u16 badness = 0;
unsigned int flags = ctx->fs->flags;
flags = ctx->fs->flags;
int line = 0;
while (!feof(fp)) {
memset(buf, 0, PATH_MAX);
- fscanf(fp, "%s%*[^\n]", buf);
+ if (fscanf(fp, "%s%*[^\n]", buf) < 1)
+ break;
/* skip the first line */
if (line++ == 0)
continue;