fix use-after-free bug in mkString(Value&, Symbol&)
This commit is contained in:
		
							parent
							
								
									9fa12fc201
								
							
						
					
					
						commit
						a9045c727f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue