From 3ba12e7dabb0cfabf9d848d85174f7fcbf1d4241 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 2 Jun 2019 20:52:21 +0000 Subject: [PATCH] Revert r348518 It should not have happened. The change is actually in upstream and I misread the diffs. --- contrib/one-true-awk/tran.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/one-true-awk/tran.c b/contrib/one-true-awk/tran.c index 837f3742bc4..8577a0b11d3 100644 --- a/contrib/one-true-awk/tran.c +++ b/contrib/one-true-awk/tran.c @@ -366,7 +366,7 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */ if (donerec == 0) recbld(); } - t = tostring(s); /* in case it's self-assign */ + t = s ? tostring(s) : tostring(""); /* in case it's self-assign */ if (freeable(vp)) xfree(vp->sval); vp->tval &= ~(NUM|CONVC|CONVO); -- 2.45.0