diff options
author | Glenn L McGrath | 2004-09-24 09:24:27 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-09-24 09:24:27 +0000 |
commit | ca29ffc2065cabfdc374922a97b22eb4f1f96d4c (patch) | |
tree | bacfb54cf10e6016d46a5933f72141b62f788551 | |
parent | bdf6319d3a2d0ee085d6ee45d1e63cb38805e30a (diff) | |
download | busybox-ca29ffc2065cabfdc374922a97b22eb4f1f96d4c.zip busybox-ca29ffc2065cabfdc374922a97b22eb4f1f96d4c.tar.gz |
Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.
-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 c0e1a71..c1cb2a2 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -1554,7 +1554,7 @@ static void handle_special(var *v) { memcpy(b+len, s, l); len += l; } - b[len] = '\0'; + if (b) b[len] = '\0'; setvar_p(V[F0], b); is_f0_split = TRUE; @@ -2551,6 +2551,7 @@ static int awk_exit(int r) { if (! exiting) { exiting = TRUE; + nextrec = FALSE; evaluate(endseq.first, &tv); } |