src/server/util/thrpool.c

changeset 581
4a049e416021
parent 577
4f5ccaea4a92
--- a/src/server/util/thrpool.c	Mon May 26 21:02:14 2025 +0200
+++ b/src/server/util/thrpool.c	Mon May 26 21:02:30 2025 +0200
@@ -38,6 +38,7 @@
 threadpool_t* threadpool_new(int min, int max) {
     log_ereport(LOG_INFORM, "new threadpool (min: %d, max: %d)", min, max);
     threadpool_t *pool = malloc(sizeof(threadpool_t));
+    memset(pool, 0, sizeof(threadpool_t));
     pool->queue = NULL;
     pool->queue_len = 0;
     pool->num_idle = 0;

mercurial