Fix nested if/else within an if

This commit is contained in:
Bill Fumerola 1999-07-08 22:27:00 +00:00
parent d45821b19b
commit 16c4e40827
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48688

View File

@ -36,7 +36,7 @@
static char sccsid[] = "@(#)traverse.c 8.7 (Berkeley) 6/15/95";
#endif
static const char rcsid[] =
"$Id: traverse.c,v 1.7 1998/06/15 06:58:12 charnier Exp $";
"$Id: traverse.c,v 1.8 1998/10/27 04:01:08 dima Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -466,11 +466,12 @@ blksout(blkp, frags, ino)
writeheader(ino);
bp = &blkp[i / tbperdb];
for (j = i; j < count; j += tbperdb, bp++)
if (*bp != 0)
if (*bp != 0) {
if (j + tbperdb <= count)
dumpblock(*bp, (int)sblock->fs_bsize);
else
dumpblock(*bp, (count - j) * TP_BSIZE);
}
spcl.c_type = TS_ADDR;
}
}