Fixed segmentation fault in StaticJsonBuffer (issue #104)

This commit is contained in:
Benoit Blanchon
2015-08-29 22:51:17 +02:00
parent a1943e21ed
commit 823a172681
6 changed files with 98 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ class JsonParser {
public:
JsonParser(JsonBuffer *buffer, char *json, uint8_t nestingLimit)
: _buffer(buffer),
_readPtr(json),
_readPtr(json ? json : ""),
_writePtr(json),
_nestingLimit(nestingLimit) {}