summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-05-27 03:17:28 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-05-27 03:17:28 +0000
commit594830fbc14003d1e378a6e1ba7663f217b24730 (patch)
treea93dd73ffe8cef987c3037e0edf1c4568f1a6f5e
parentf457179a13d8bb203bcc381a2f1e8ce72a7f7d40 (diff)
Notes
-rw-r--r--usr.bin/hexdump/parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/hexdump/parse.c b/usr.bin/hexdump/parse.c
index 85e035e17a0e..d928a3ff8aef 100644
--- a/usr.bin/hexdump/parse.c
+++ b/usr.bin/hexdump/parse.c
@@ -424,7 +424,7 @@ isint2: switch(fu->bcnt) {
* If, rep count is greater than 1, no trailing whitespace
* gets output from the last iteration of the format unit.
*/
- for (fu = fs->nextfu;; fu = fu->nextfu) {
+ for (fu = fs->nextfu; fu; fu = fu->nextfu) {
if (!fu->nextfu && fs->bcnt < blocksize &&
!(fu->flags&F_SETREP) && fu->bcnt)
fu->reps += (blocksize - fs->bcnt) / fu->bcnt;
@@ -437,8 +437,6 @@ isint2: switch(fu->bcnt) {
if (p2)
pr->nospace = p2;
}
- if (!fu->nextfu)
- break;
}
#ifdef DEBUG
for (fu = fs->nextfu; fu; fu = fu->nextfu) {