aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp/special.c
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-01-08 12:00:55 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-01-08 12:00:55 +0000
commitc28065c606fcaaf574eb9adfa8ddc32b7885e0cc (patch)
tree7edd4b5974c91e0aee7a6cb25e43aa5d8d4284e9 /usr.bin/cmp/special.c
parentb8b15e71f7755d568f393c8ab5c870efbf7a660a (diff)
Notes
Diffstat (limited to 'usr.bin/cmp/special.c')
-rw-r--r--usr.bin/cmp/special.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/cmp/special.c b/usr.bin/cmp/special.c
index 0dcd0c5dfe254..0a15fa1b28f4e 100644
--- a/usr.bin/cmp/special.c
+++ b/usr.bin/cmp/special.c
@@ -60,6 +60,7 @@ c_special(fd1, file1, skip1, fd2, file2, skip2)
if ((fp2 = fdopen(fd2, "r")) == NULL)
err(ERR_EXIT, "%s", file2);
+ dfound = 0;
while (skip1--)
if (getc(fp1) == EOF)
goto eof;
@@ -67,7 +68,6 @@ c_special(fd1, file1, skip1, fd2, file2, skip2)
if (getc(fp2) == EOF)
goto eof;
- dfound = 0;
for (byte = line = 1;; ++byte) {
ch1 = getc(fp1);
ch2 = getc(fp2);