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

This commit is contained in:
Stuart Pernsteiner
2012-12-13 11:13:20 +01:00
committed by Eelco Dolstra
parent 9fa12fc201
commit a9045c727f
+1 -1
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());
}