1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

clearerr() clears both EOF and error flags, so do it only for

error and not for EOF or loop test becomes while(1)

Should go into 2.2
Submitted by: Gregory Neil Shapiro <gshapiro@WPI.EDU>
This commit is contained in:
Andrey A. Chernov 1997-02-13 21:45:20 +00:00
parent 77457cfda5
commit 85456c29cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22676

View File

@ -199,7 +199,8 @@ collect(fp, smtpmode, requeueflag, hdrp, e)
c = getc(fp);
if (errno != EINTR)
break;
clearerr(fp);
if (c != EOF)
clearerr(fp);
}
CollectProgress = TRUE;
if (TrafficLogFile != NULL && !headeronly)