Skip to content

Commit

Permalink
winpr/pool: zero thread pool on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiklautz committed Jan 24, 2013
1 parent b2c49aa commit f54f6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winpr/libwinpr/pool/pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f54f6ce

Please sign in to comment.