mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added std::nothrow
This commit is contained in:
@@ -53,7 +53,10 @@ class DynamicJsonBuffer : public JsonBuffer {
|
||||
}
|
||||
|
||||
void* allocInOtherBlocks(size_t bytes) {
|
||||
if (!_next) _next = new DynamicJsonBuffer();
|
||||
if (!_next) {
|
||||
_next = new (std::nothrow) DynamicJsonBuffer();
|
||||
if (!_next) return NULL;
|
||||
}
|
||||
return _next->alloc(bytes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user