db/upnp/WorkQueue: fix pthread_t[] allocation size

Was using the wrong variable.
This commit is contained in:
Max Kellermann 2014-01-15 18:51:10 +01:00
parent 2819b302c3
commit 14c3ff58a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;