diff options
Diffstat (limited to 'libcrystfel/src/thread-pool.c')
-rw-r--r-- | libcrystfel/src/thread-pool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/thread-pool.c b/libcrystfel/src/thread-pool.c index 7860d698..0951fcc6 100644 --- a/libcrystfel/src/thread-pool.c +++ b/libcrystfel/src/thread-pool.c @@ -86,11 +86,11 @@ static void *task_worker(void *pargsv) { struct worker_args *w = pargsv; struct task_queue *q = w->tq; - int *cookie; + int *cookie_slot; - cookie = malloc(sizeof(int)); - *cookie = w->id; - pthread_setspecific(status_label_key, cookie); + cookie_slot = malloc(sizeof(int)); + *cookie_slot = w->id; + pthread_setspecific(status_label_key, cookie_slot); free(w); @@ -129,7 +129,7 @@ static void *task_worker(void *pargsv) } while ( 1 ); - free(cookie); + free(cookie_slot); return NULL; } |