mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
17ce5a9b90
commit
c8b6d1e472
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ char *setsval(Cell *vp, const char *s) /* set string val of a Cell */
|
|||
donefld = 0; /* mark $1... invalid */
|
||||
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))
|
||||
xfree(vp->sval);
|
||||
vp->tval &= ~NUM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue