diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-24 09:24:27 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-09-24 09:24:27 +0000 |
commit | ca29ffc2065cabfdc374922a97b22eb4f1f96d4c (patch) | |
tree | bacfb54cf10e6016d46a5933f72141b62f788551 /editors/awk.c | |
parent | bdf6319d3a2d0ee085d6ee45d1e63cb38805e30a (diff) | |
download | busybox-w32-ca29ffc2065cabfdc374922a97b22eb4f1f96d4c.tar.gz busybox-w32-ca29ffc2065cabfdc374922a97b22eb4f1f96d4c.tar.bz2 busybox-w32-ca29ffc2065cabfdc374922a97b22eb4f1f96d4c.zip |
Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index c0e1a71fe..c1cb2a2e2 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -1554,7 +1554,7 @@ static void handle_special(var *v) { | |||
1554 | memcpy(b+len, s, l); | 1554 | memcpy(b+len, s, l); |
1555 | len += l; | 1555 | len += l; |
1556 | } | 1556 | } |
1557 | b[len] = '\0'; | 1557 | if (b) b[len] = '\0'; |
1558 | setvar_p(V[F0], b); | 1558 | setvar_p(V[F0], b); |
1559 | is_f0_split = TRUE; | 1559 | is_f0_split = TRUE; |
1560 | 1560 | ||
@@ -2551,6 +2551,7 @@ static int awk_exit(int r) { | |||
2551 | 2551 | ||
2552 | if (! exiting) { | 2552 | if (! exiting) { |
2553 | exiting = TRUE; | 2553 | exiting = TRUE; |
2554 | nextrec = FALSE; | ||
2554 | evaluate(endseq.first, &tv); | 2555 | evaluate(endseq.first, &tv); |
2555 | } | 2556 | } |
2556 | 2557 | ||