Revert r301689 - one-true-awk: Avoid a NULL dereference.
I got this wrong and the coverity report doesn't match the NetBSD change, which was thought for a different version. The change wouldn't hurt but let's wait until upstream figures this out.
This commit is contained in:
parent
aedab58589
commit
485db59b11
@ -333,7 +333,7 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */
|
|||||||
donefld = 0; /* mark $1... invalid */
|
donefld = 0; /* mark $1... invalid */
|
||||||
donerec = 1;
|
donerec = 1;
|
||||||
}
|
}
|
||||||
t = s ? tostring(s) : tostring(""); /* in case it's self-assign */
|
t = tostring(s); /* in case it's self-assign */
|
||||||
if (freeable(vp))
|
if (freeable(vp))
|
||||||
xfree(vp->sval);
|
xfree(vp->sval);
|
||||||
vp->tval &= ~NUM;
|
vp->tval &= ~NUM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user