summaryrefslogtreecommitdiff
path: root/ufs-fsck/inode.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-25 03:37:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-25 03:37:12 +0000
commit33406468d829d2075bc998acebec1f13c67b09a5 (patch)
tree232517fa205ff987e5bb7284c94807f034b4552b /ufs-fsck/inode.c
parent0b3c259a64c6ae0130a81e7a682024b21baf1bba (diff)
entered into RCS
Diffstat (limited to 'ufs-fsck/inode.c')
-rw-r--r--ufs-fsck/inode.c3
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);