aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-15 18:51:10 +0100
committerMax Kellermann <max@duempel.org>2014-01-15 18:51:10 +0100
commit14c3ff58a4f681d9f3475fbd828291185ac25703 (patch)
treec16568669a4fcfa21e3b30e970d3da431ac9d9ec /src
parent2819b302c3935098b1c6e68b124cd8a4e659a393 (diff)
downloadmpd-14c3ff58a4f681d9f3475fbd828291185ac25703.tar.gz
mpd-14c3ff58a4f681d9f3475fbd828291185ac25703.tar.xz
mpd-14c3ff58a4f681d9f3475fbd828291185ac25703.zip
db/upnp/WorkQueue: fix pthread_t[] allocation size
Was using the wrong variable.
Diffstat (limited to '')
-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;