From 9227abab1db8112427f5c46511a467cb8d6467d4 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 25 Oct 2007 12:38:02 +0000 Subject: Vendor import of bwk's 23-Oct-2007 release. This includes fixes for FreeBSD PR's: bin/104795, bin/100443 --- contrib/one-true-awk/tran.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/one-true-awk/tran.c') diff --git a/contrib/one-true-awk/tran.c b/contrib/one-true-awk/tran.c index d8b4a47..c19ce94 100644 --- a/contrib/one-true-awk/tran.c +++ b/contrib/one-true-awk/tran.c @@ -332,10 +332,10 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */ donerec = 1; } t = tostring(s); /* in case it's self-assign */ - vp->tval &= ~NUM; - vp->tval |= STR; if (freeable(vp)) xfree(vp->sval); + vp->tval &= ~NUM; + vp->tval |= STR; vp->tval &= ~DONTFREE; dprintf( ("setsval %p: %s = \"%s (%p) \", t=%o r,f=%d,%d\n", vp, NN(vp->nval), t,t, vp->tval, donerec, donefld) ); -- cgit v1.1