summaryrefslogtreecommitdiffstats
path: root/contrib/one-true-awk/lex.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-07-30 06:47:03 +0000
committerru <ru@FreeBSD.org>2003-07-30 06:47:03 +0000
commit6247f7406311e6b59676be460a1e9394a5a1fe8f (patch)
treecab265f99f6731de1c61b382e08586a6f6d799bc /contrib/one-true-awk/lex.c
parent153c5b8c9d890db78d0bdbc64269ada6c08661bf (diff)
downloadFreeBSD-src-6247f7406311e6b59676be460a1e9394a5a1fe8f.zip
FreeBSD-src-6247f7406311e6b59676be460a1e9394a5a1fe8f.tar.gz
Vendor import of bwk's 29-Jul-2003 release.
Diffstat (limited to 'contrib/one-true-awk/lex.c')
-rw-r--r--contrib/one-true-awk/lex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/one-true-awk/lex.c b/contrib/one-true-awk/lex.c
index e4b1fd3..39f5d4d 100644
--- a/contrib/one-true-awk/lex.c
+++ b/contrib/one-true-awk/lex.c
@@ -529,6 +529,8 @@ int regexpr(void)
}
}
*bp = 0;
+ if (c == 0)
+ SYNTAX("non-terminated regular expression %.10s...", buf);
yylval.s = tostring(buf);
unput('/');
RET(REGEXPR);
OpenPOWER on IntegriCloud