commit | b677d8ed5d0d9d1dba0e9ed4bef0bedd4547b6ab | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 23 15:37:07 2023 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 23 15:37:07 2023 +0100 |
tree | fabf6939ccc5b6feed7be01b57eb03444ae4c66d | |
parent | 395a7d9d8f8e5b539a8136ecaf684a13ac98636f [diff] [blame] |
parser json BUGFIX condition typo
diff --git a/src/parser_json.c b/src/parser_json.c index 3abb1b5..abeb120 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -394,7 +394,7 @@ if (snode) { /* we have the key, validate the value */ - if ((status < LYJSON_NUMBER) && (status > LYJSON_NULL)) { + if ((status < LYJSON_NUMBER) || (status > LYJSON_NULL)) { /* not a terminal */ rc = LY_ENOT; goto cleanup;