forked from bblanchon/ArduinoJson
Fixed use-of-uninitialized-value in encodeCodepoint()
This commit is contained in:
@ -31,6 +31,8 @@ inline bool isLowSurrogate(uint16_t codeunit) {
|
|||||||
|
|
||||||
class Codepoint {
|
class Codepoint {
|
||||||
public:
|
public:
|
||||||
|
Codepoint() : _highSurrogate(0) {}
|
||||||
|
|
||||||
bool append(uint16_t codeunit) {
|
bool append(uint16_t codeunit) {
|
||||||
if (isHighSurrogate(codeunit)) {
|
if (isHighSurrogate(codeunit)) {
|
||||||
_highSurrogate = codeunit & 0x3FF;
|
_highSurrogate = codeunit & 0x3FF;
|
||||||
|
Reference in New Issue
Block a user