mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Added a test with a NULL string
This commit is contained in:
@@ -25,6 +25,11 @@ void StringBuilder::append(const char* s)
|
||||
|
||||
void StringBuilder::appendEscaped(const char* s)
|
||||
{
|
||||
if (!s)
|
||||
{
|
||||
return append("null");
|
||||
}
|
||||
|
||||
if (length > capacity - 2)
|
||||
{
|
||||
// not enough from for quotes
|
||||
|
||||
Reference in New Issue
Block a user