summaryrefslogtreecommitdiffstats
path: root/src/server/threadpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/threadpool.c')
-rw-r--r--src/server/threadpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/threadpool.c b/src/server/threadpool.c
index 63ae19f..4ebefcb 100644
--- a/src/server/threadpool.c
+++ b/src/server/threadpool.c
@@ -69,7 +69,7 @@ bool threadpool_run(void *(*startRoutine)(void *), void *arg, const char *name)
return false; // Or bail out!?
}
#endif
- entry_t *entry;
+ entry_t *entry = NULL;
for ( int i = 0; i < maxIdleThreads; ++i ) {
entry = atomic_exchange( &pool[i], NULL );
if ( entry != NULL ) {