RMPS: calloc over malloc - zeroes!

This commit is contained in:
2019-01-24 00:11:53 +02:00
parent 986af66adb
commit f7f02899b3

View File

@@ -150,7 +150,7 @@ void *agent_pool(void *args)
pthread_attr_t attr;
pthread_t *agent_thread = calloc(pool->size, sizeof(*agent_thread));
struct agent_args *agent_struct =
malloc(pool->size * sizeof(*agent_struct));
calloc(pool->size, sizeof(*agent_struct));
int i;
pthread_cleanup_push(shutdown_pool, agent_struct);