forked from lix-project/lix
fix use-after-free bug in mkString(Value&, Symbol&)
This commit is contained in:
parent
9fa12fc201
commit
a9045c727f
|
@ -131,7 +131,7 @@ static inline void mkStringNoCopy(Value & v, const char * s)
|
||||||
|
|
||||||
static inline void mkString(Value & v, const Symbol & s)
|
static inline void mkString(Value & v, const Symbol & s)
|
||||||
{
|
{
|
||||||
mkStringNoCopy(v, ((string) s).c_str());
|
mkStringNoCopy(v, ((const string &) s).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue