aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-07-23 02:11:25 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-07-23 02:11:25 +0000
commit1fbc909570199c22fb38221e4c6523d798141a15 (patch)
tree5d7152efe8204fd4bde681b3876ad29ec05c1aa2
parent2e99d43846d41970e67d2299f46aa4723ad37ea0 (diff)
downloadbusybox-1fbc909570199c22fb38221e4c6523d798141a15.tar.gz
Patch from Dmitry Zakharov to fix a bug discovered via the freeswap
script.
-rw-r--r--editors/awk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 9905be092..af8958925 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1211,6 +1211,7 @@ static void chain_group(void) {
if (c & TC_GRPSTART) {
while(next_token(TC_GRPSEQ | TC_GRPTERM) != TC_GRPTERM) {
+ if (t.tclass & TC_NEWLINE) continue;
rollback_token();
chain_group();
}