summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/misc.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-12-19 00:26:20 +0000
committerache <ache@FreeBSD.org>1994-12-19 00:26:20 +0000
commitd33dd5575202aa0bacf2c36f7347dbedbb2ebdd4 (patch)
treeda361a8973c836b3480716ad1840022d44172c72 /usr.bin/m4/misc.c
parent05d48b0c7e3a1b9e98cc98662ad97b6a01811ebd (diff)
downloadFreeBSD-src-d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4.zip
FreeBSD-src-d33dd5575202aa0bacf2c36f7347dbedbb2ebdd4.tar.gz
Skip nulls in putback to don't confuse with EOFs
Diffstat (limited to 'usr.bin/m4/misc.c')
-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 916edba..5f12e47 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
OpenPOWER on IntegriCloud