treat unknown escape char as an error now - json2tsv - JSON to TSV converter | |
git clone git://git.codemadness.org/json2tsv | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0329ac9b10b3d47b509afca6f82078bf50b32480 | |
parent d58761df609fb30dce860560b849f7f2d389e007 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 15 Oct 2019 18:55:24 +0200 | |
treat unknown escape char as an error now | |
Diffstat: | |
M json2tsv.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/json2tsv.c b/json2tsv.c | |
@@ -202,7 +202,8 @@ parsejson(void (*cb)(struct json_node *, size_t, const char… | |
v += codepointtoutf8(cp, &valu… | |
continue; | |
default: | |
- continue; /* ignore unknown es… | |
+ *errstr = JSON_ERROR_ESCAPE_CH… | |
+ goto end; | |
} | |
if (capacity(&value, &vz, v, 1) == -1) | |
goto end; |