Fix nested if/else within an if
This commit is contained in:
parent
d45821b19b
commit
16c4e40827
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user