diff options
author | ru <ru@FreeBSD.org> | 2010-01-09 23:19:01 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2010-01-09 23:19:01 +0000 |
commit | 56d4794e7235f69c1e7230e6b905785d8a053e40 (patch) | |
tree | 18d3f95433c9b0fe4842e4b5896976cc6aea9ec3 /contrib/one-true-awk/run.c | |
parent | e1c64beebc41d28b21e9e6b120a7a361bd6acd52 (diff) | |
download | FreeBSD-src-56d4794e7235f69c1e7230e6b905785d8a053e40.zip FreeBSD-src-56d4794e7235f69c1e7230e6b905785d8a053e40.tar.gz |
Update to a 26-Nov-2009 release.
Diffstat (limited to 'contrib/one-true-awk/run.c')
-rw-r--r-- | contrib/one-true-awk/run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/one-true-awk/run.c b/contrib/one-true-awk/run.c index a9e269c..72fc4d0 100644 --- a/contrib/one-true-awk/run.c +++ b/contrib/one-true-awk/run.c @@ -388,7 +388,7 @@ Cell *jump(Node **a, int n) /* break, continue, next, nextfile, return */ return 0; /* not reached */ } -Cell *getline(Node **a, int n) /* get next line from specific input */ +Cell *awkgetline(Node **a, int n) /* get next line from specific input */ { /* a[0] is variable, a[1] is operator, a[2] is filename */ Cell *r, *x; extern Cell **fldtab; @@ -1159,11 +1159,11 @@ Cell *cat(Node **a, int q) /* a[0] cat a[1] */ x->sval, y->sval); strcpy(s, x->sval); strcpy(s+n1, y->sval); + tempfree(x); tempfree(y); z = gettemp(); z->sval = s; z->tval = STR; - tempfree(x); return(z); } |