diff options
-rw-r--r-- | sbin/fsck_ffs/pass1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index 10f03eb..6562155 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, |