Commit 14c3ff58 authored by Max Kellermann's avatar Max Kellermann

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

Was using the wrong variable.
parent 2819b302
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment