aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db/upnp/WorkQueue.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/upnp/WorkQueue.hxx b/src/db/upnp/WorkQueue.hxx
index 6a672273b..723254251 100644
--- a/src/db/upnp/WorkQueue.hxx
+++ b/src/db/upnp/WorkQueue.hxx
@@ -99,7 +99,7 @@ public:
assert(n_threads == 0);
assert(threads == nullptr);
- threads = new pthread_t[n_threads];
+ threads = new pthread_t[nworkers];
for (int i = 0; i < nworkers; i++) {
int err;