projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf6319
)
Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 24 Sep 2004 09:24:27 +0000
(09:24 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 24 Sep 2004 09:24:27 +0000
(09:24 -0000)
editors/awk.c
patch
|
blob
|
history
diff --git
a/editors/awk.c
b/editors/awk.c
index c0e1a71fe3b3fae203af435ef41cf2592c6d7c96..c1cb2a2e26febff7f46332ad2ca311359aaa5eac 100644
(file)
--- 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);
}