mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed use-of-uninitialized-value in encodeCodepoint()
This commit is contained in:
		| @@ -31,6 +31,8 @@ inline bool isLowSurrogate(uint16_t codeunit) { | ||||
|  | ||||
| class Codepoint { | ||||
|  public: | ||||
|   Codepoint() : _highSurrogate(0) {} | ||||
|  | ||||
|   bool append(uint16_t codeunit) { | ||||
|     if (isHighSurrogate(codeunit)) { | ||||
|       _highSurrogate = codeunit & 0x3FF; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user