winpr/pool: zero thread pool on creation

This commit is contained in:
Bernhard Miklautz 2013-01-24 17:17:12 +01:00
parent b2c49aad04
commit f54f6ce196

View File

@ -154,7 +154,7 @@ PTP_POOL CreateThreadpool(PVOID reserved)
if (pCreateThreadpool)
return pCreateThreadpool(reserved);
#else
pool = (PTP_POOL) malloc(sizeof(TP_POOL));
pool = (PTP_POOL) calloc(1, sizeof(TP_POOL));
if (pool)
InitializeThreadpool(pool);