Introduction
Introduction Statistics Contact Development Disclaimer Help
remove check for types and depth of object key string that cannot happen anymor…
git clone git://git.codemadness.org/json2tsv
Log
Files
Refs
README
LICENSE
---
commit 29f995fe694b10e97eb61afa046de1915f0f97fb
parent b3cce42c19a31a92b232d9e6a2bdb973169a7878
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 23 Oct 2019 19:40:36 +0200
remove check for types and depth of object key string that cannot happen anymore
Diffstat:
M json.c | 4 ----
1 file changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/json.c b/json.c
@@ -116,10 +116,6 @@ handlechr:
switch (c) {
case ':':
- /* not in an object or key in object is not a string */
- if (!depth || nodes[depth - 1].type != TYPE_OBJECT ||
- nodes[depth].type != TYPE_STRING)
- JSON_INVALID();
iskey = 0;
expect = EXPECT_VALUE;
break;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.