Skip to content

Commit

Permalink
Merge pull request Pithikos#15 from zweng/master
Browse files Browse the repository at this point in the history
initilise jobqueue_p->len to 0
Johan committed May 11, 2015
2 parents 5aee2f2 + 18142ee commit 9151cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thpool.c
Original file line number Diff line number Diff line change
@@ -410,7 +410,7 @@ static int jobqueue_init(thpool_* thpool_p){
return -1;
}
bsem_init(thpool_p->jobqueue_p->has_jobs, 0);

thpool_p->jobqueue_p->len = 0;
jobqueue_clear(thpool_p);
return 0;
}

0 comments on commit 9151cd1

Please sign in to comment.