Merge pull request #15 from zweng/master

initilise jobqueue_p->len to 0
This commit is contained in:
Johan 2015-05-11 13:02:44 +01:00
commit 9151cd1b7d

View File

@ -410,7 +410,7 @@ static int jobqueue_init(thpool_* thpool_p){
return -1; return -1;
} }
bsem_init(thpool_p->jobqueue_p->has_jobs, 0); bsem_init(thpool_p->jobqueue_p->has_jobs, 0);
thpool_p->jobqueue_p->len = 0;
jobqueue_clear(thpool_p); jobqueue_clear(thpool_p);
return 0; return 0;
} }