Revert r348518

It should not have happened. The change is actually in upstream and I misread the diffs.
This commit is contained in:
Warner Losh 2019-06-02 20:52:21 +00:00
parent 2675e1b91d
commit adb46ac4c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348519

View File

@ -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);