diff options
Diffstat (limited to 'ufs-fsck/inode.c')
-rw-r--r-- | ufs-fsck/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ufs-fsck/inode.c b/ufs-fsck/inode.c index c10906ff..afb8b1a4 100644 --- a/ufs-fsck/inode.c +++ b/ufs-fsck/inode.c @@ -50,6 +50,9 @@ inode_iterate (struct dinode *dp, readblock (fsbtodb (sblock, iblock), ptrs, sblock->fs_bsize); for (i = 0; i < NINDIR (sblock); i++) { + if (!ptrs[i]) + continue; + if (level == 0) { cont = (*fn)(ptrs[i], sblock->fs_frag, totaloffset); |