mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Fix JSMN boolean parsing
This commit is contained in:
parent
29f968eebf
commit
cbc073c78e
@ -300,6 +300,10 @@ JSMN_API int jsmn_parse(jsmn_parser *parser, const char *js, const size_t len,
|
|||||||
case 't':
|
case 't':
|
||||||
case 'f':
|
case 'f':
|
||||||
case 'n':
|
case 'n':
|
||||||
|
// Add uppercase variants
|
||||||
|
case 'T':
|
||||||
|
case 'F':
|
||||||
|
case 'N':
|
||||||
/* And they must not be keys of the object */
|
/* And they must not be keys of the object */
|
||||||
if (tokens != NULL && parser->toksuper != -1) {
|
if (tokens != NULL && parser->toksuper != -1) {
|
||||||
const jsmntok_t *t = &tokens[parser->toksuper];
|
const jsmntok_t *t = &tokens[parser->toksuper];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user