no need to check for control-characters twice - 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 ab777095d7053b3a04756ff7129e9b96d2659e05
 (DIR) parent 458a311c76d1fe4d9852c57766b5253d6c90b33b
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  5 Oct 2019 10:53:33 +0200
       
       no need to check for control-characters twice
       
       Diffstat:
         M json2tsv.c                          |       6 ++----
       
       1 file changed, 2 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/json2tsv.c b/json2tsv.c
       @@ -223,10 +223,8 @@ parsejson(void (*cb)(struct json_node *, size_t, const char *))
                                }
                                break;
                        default:
       -                        if (!iscntrl(c)) {
       -                                capacity(&value, &vz, v, 2);
       -                                value[v++] = c;
       -                        }
       +                        capacity(&value, &vz, v, 2);
       +                        value[v++] = c;
                        }
                }