kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit c136c5ffc5145346d54b3f8ece0742c4467ab885
parent 73fc58163d36822e30ab485911419ffed09ce62b
Author: Joris Vink <joris@coders.se>
Date:   Mon, 27 Feb 2017 21:34:26 -0800

python_calloc() no longer needs manual memset.

Diffstat:
src/python.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -153,12 +153,7 @@ python_malloc(void *ctx, size_t len) static void * python_calloc(void *ctx, size_t memb, size_t len) { - void *ptr; - - ptr = kore_calloc(memb, len); - memset(ptr, 0, len); - - return (ptr); + return (kore_calloc(memb, len)); } static void *