forked from bblanchon/ArduinoJson
Removed std::nothrow because it's not supported in Arduino
This commit is contained in:
1 parent
e8c127a894
commit
2932c4ee43
1 file changed
+1
-1
@@ -54,7 +54,7 @@ class DynamicJsonBuffer : public JsonBuffer {
|
||||
|
||||
void* allocInOtherBlocks(size_t bytes) {
|
||||
if (!_next) {
|
||||
_next = new (std::nothrow) DynamicJsonBuffer();
|
||||
_next = new DynamicJsonBuffer();
|
||||
if (!_next) return NULL;
|
||||
}
|
||||
return _next->alloc(bytes);
|
||||
|
||||
Reference in new issue
Block a user