fix: escape \ not ' (typo) - 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 458a311c76d1fe4d9852c57766b5253d6c90b33b
 (DIR) parent 92e137666be73a2c21a71f0357d15810b56ff20a
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  5 Oct 2019 10:52:09 +0200
       
       fix: escape \ not ' (typo)
       
       Diffstat:
         M json2tsv.c                          |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/json2tsv.c b/json2tsv.c
       @@ -135,9 +135,10 @@ parsejson(void (*cb)(struct json_node *, size_t, const char *))
        
                                        if (escape) {
                                                escape = 0;
       +
                                                switch (c) {
       -                                        case '"':
       -                                        case '\'':
       +                                        case '"': /* FALLTHROUGH */
       +                                        case '\\':
                                                case '/': break;
                                                case 'b': c = '\b'; break;
                                                case 'f': c = '\f'; break;