forked from bblanchon/ArduinoJson
Huge refactoring in progress...
This commit is contained in:
1 parent
4c204840e9
commit
45a8ed6531
7 files changed
+12
-5
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ JsonValue &JsonArray::add() {
|
||||
}
|
||||
|
||||
JsonArrayNode *JsonArray::createNode() {
|
||||
if (_buffer) return NULL;
|
||||
if (!_buffer) return NULL;
|
||||
void *ptr = _buffer->alloc(sizeof(JsonArrayNode));
|
||||
return ptr ? new (ptr) JsonArrayNode() : NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user