treat unknown escape char as an error now - json2tsv - JSON to TSV converter
 (HTM) git clone git://git.codemadness.org/json2tsv
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0329ac9b10b3d47b509afca6f82078bf50b32480
 (DIR) parent d58761df609fb30dce860560b849f7f2d389e007
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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(-)
       ---
 (DIR) diff --git a/json2tsv.c b/json2tsv.c
       @@ -202,7 +202,8 @@ parsejson(void (*cb)(struct json_node *, size_t, const char *), const char **err
                                                        v += codepointtoutf8(cp, &value[v]);
                                                        continue;
                                                default:
       -                                                continue; /* ignore unknown escape char */
       +                                                *errstr = JSON_ERROR_ESCAPE_CHAR;
       +                                                goto end;
                                                }
                                                if (capacity(&value, &vz, v, 1) == -1)
                                                        goto end;