mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Always return a valid pointer in Exception::what()
This commit is contained in:
		
							parent
							
								
									ba7c5d2305
								
							
						
					
					
						commit
						71aca8c86d
					
				| @ -27,7 +27,9 @@ char const* Exception::what() const noexcept | ||||
| 	if (string const* cmt = comment()) | ||||
| 		return cmt->c_str(); | ||||
| 	else | ||||
| 		return nullptr; | ||||
| 		/// Boost accepts nullptr, but the C++ standard doesn't
 | ||||
| 		/// and crashes on some platforms.
 | ||||
| 		return std::exception::what(); | ||||
| } | ||||
| 
 | ||||
| string Exception::lineInfo() const | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user