aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-12-19 00:26:20 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-12-19 00:26:20 +0000
commitb63b4cdb92925c65391f52badfec986fb9414b1e (patch)
treeda361a8973c836b3480716ad1840022d44172c72 /usr.bin
parent618540833659ea9819b7e2260a9b3707f0aa6a20 (diff)
downloadsrc-b63b4cdb92925c65391f52badfec986fb9414b1e.tar.gz
src-b63b4cdb92925c65391f52badfec986fb9414b1e.zip
Skip nulls in putback to don't confuse with EOFs
Notes
Notes: svn path=/head/; revision=5167
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/m4/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/m4/misc.c b/usr.bin/m4/misc.c
index 916edbac41e4..5f12e478e899 100644
--- a/usr.bin/m4/misc.c
+++ b/usr.bin/m4/misc.c
@@ -77,6 +77,8 @@ int c;
{
if (c == EOF)
c = 0;
+ else if (c == 0)
+ return;
if (bp < endpbb)
*bp++ = c;
else