fix use-after-free bug in mkString(Value&, Symbol&)

This commit is contained in:
Stuart Pernsteiner 2012-12-12 21:13:26 -08:00 committed by Eelco Dolstra
parent 9fa12fc201
commit a9045c727f

View file

@ -131,7 +131,7 @@ static inline void mkStringNoCopy(Value & v, const char * s)
static inline void mkString(Value & v, const Symbol & s)
{
mkStringNoCopy(v, ((string) s).c_str());
mkStringNoCopy(v, ((const string &) s).c_str());
}