json: Minor cleanups in cJSON.c
authorWerner Koch <wk@gnupg.org>
Mon, 16 Jul 2018 12:42:30 +0000 (14:42 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 16 Jul 2018 12:42:30 +0000 (14:42 +0200)
commit1933f5b8056b2671301379106cca4504c4187795
treec7926657e21b175b5289a7a2bb915b94fe25d84b
parent013a7f47ab486c380b3c97637d3b15f11de74fe8
json: Minor cleanups in cJSON.c

* src/cJSON.c: Add comments on the origin of the code.
(parse_string): Allocate an extra byte for safeness.
(cJSON_AddItemToArray): Allo ARRAY to be NULL.

Signed-off-by: Werner Koch <wk@gnupg.org>
src/cJSON.c