diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2010-01-09 23:04:24 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2010-01-09 23:04:24 +0000 |
commit | d9859a0e4b8744c01f13cf391ee5cfbf57c5e818 (patch) | |
tree | 9c534258e481a3cc70a8d7e2e44f6726fd042d76 /run.c | |
parent | 2f77d6040739b460e8f831f9d86510505ad8ed75 (diff) | |
download | src-d9859a0e4b8744c01f13cf391ee5cfbf57c5e818.tar.gz src-d9859a0e4b8744c01f13cf391ee5cfbf57c5e818.zip |
Vendor import of bwk's 26-Nov-2009 release.vendor/one-true-awk/20091126
Notes
Notes:
svn path=/vendor/one-true-awk/dist/; revision=201945
svn path=/vendor/one-true-awk/20091126/; revision=201946; tag=vendor/one-true-awk/20091126
Diffstat (limited to 'run.c')
-rw-r--r-- | run.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |