forked from bblanchon/ArduinoJson
Fixed bug in JsonObjectBase::getBoolFromToken()
This commit is contained in:
@ -26,7 +26,7 @@ int JsonObjectBase::getNestedTokenCount(jsmntok_t* token)
|
||||
|
||||
bool JsonObjectBase::getBoolFromToken(jsmntok_t* token)
|
||||
{
|
||||
if (token->type != JSMN_PRIMITIVE) return 0;
|
||||
if (token == 0 || token->type != JSMN_PRIMITIVE) return 0;
|
||||
|
||||
// "true"
|
||||
if (json[token->start] == 't') return true;
|
||||
|
Reference in New Issue
Block a user