Commit dd81b742 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

forgot to set 'res'.

parent 4d345471
......@@ -212,6 +212,9 @@ struct task *queue_gettask(struct queue *q, const struct task *prev, int blockin
/* Another one bites the dust. */
const int qcount = q->count -= 1;
/* Get a pointer on the task that we want to return. */
res = &qtasks[tid];
/* Swap this task with the last task and re-heap. */
int k = ind;
......
Supports Markdown
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