json: Only use calloc instead of malloc
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 8 Aug 2018 12:25:28 +0000 (14:25 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 8 Aug 2018 12:25:28 +0000 (14:25 +0200)
commitfdc07b3ddc2f68e6fcb33703ea41126d0a841290
tree9063ea454950ec79c8314a6def9a10307e8dab3b
parent974a95db04f9cdea02867f0246445b4679517ba0
json: Only use calloc instead of malloc

* src/cJSON.c, src/gpgme-json.c (CALLOC_ONLY): New define
to change xmalloc / xtrymalloc to use calloc.

--
Some people consider malloc dangerous as it might allow an
information leak.
src/cJSON.c
src/gpgme-json.c