aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-06-26 16:40:25 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-06-26 16:40:25 +0000
commit6a26192ada39d128ef1650d35cc1e80e62374bb5 (patch)
tree1f392fbf22b7768b0b10b12ba00d52c5338d92e9 /sbin
parent57d14ec550feef1d04216ca888476f0f60b03e4d (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_ffs/pass1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c
index 10f03eb26983..656215508d9a 100644
--- a/sbin/fsck_ffs/pass1.c
+++ b/sbin/fsck_ffs/pass1.c
@@ -276,7 +276,7 @@ checkinode(ino_t inumber, struct inodesc *idesc)
}
}
}
- for (j = ndb; j < NDADDR; j++)
+ for (j = ndb; ndb < NDADDR && j < NDADDR; j++)
if (DIP(dp, di_db[j]) != 0) {
if (debug)
printf("bad direct addr[%d]: %qu\n", j,