core: kill zalloc() and use calloc() where applicable
authorBartosz Golaszewski <bartekgola@gmail.com>
Sat, 24 Jun 2017 10:37:50 +0000 (12:37 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 6 Jul 2017 09:11:36 +0000 (11:11 +0200)
commit2b8b4cef8443746d67f35c82f457911c563c45ae
tree29d5604d8aa3ca49a421cb4e0f29205f2cbe3af9
parent036510a17436e712bcfb6d607ee9fb02b47bb459
core: kill zalloc() and use calloc() where applicable

Remove zalloc() and use malloc() + memset() in the code. When
allocating an array of elements, use calloc(). This is done in
preparation for splitting up the core library code into separate
files.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c