diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-11 03:38:10 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-11 03:38:10 +0200 |
commit | 3f9d5e4a4f9e4f0b5fe66e4a6745a4b8c5f6e447 (patch) | |
tree | 2126bbf8b48b1673e77f0667ae5efc04536fbd86 /sys/src/cmd/awk | |
parent | 6b999263ae69d64870a8bf02a06c1f707a73a7e0 (diff) |
awk: don't get into a infinite loop with eof while in string (thanks BurnZeZ)
Diffstat (limited to 'sys/src/cmd/awk')
-rw-r--r-- | sys/src/cmd/awk/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/awk/lex.c b/sys/src/cmd/awk/lex.c index 90ecf4245..f1f5e1f09 100644 --- a/sys/src/cmd/awk/lex.c +++ b/sys/src/cmd/awk/lex.c @@ -363,7 +363,7 @@ int string(void) case 0: SYNTAX( "non-terminated string %.10s...", buf ); lineno++; - break; + RET(0); case '\\': c = input(); switch (c) { |