fixed quite some segmentation faults in http-thr.c.

similar fixes must be done on other task implementations such as http-file.c
This commit is contained in:
2023-01-11 23:59:41 +09:00
parent 529363913f
commit 97133f8c12
76 changed files with 2372 additions and 2167 deletions

View File

@@ -45,7 +45,7 @@ static hio_tmridx_t sift_up (hio_t* hio, hio_tmridx_t index)
{
hio_tmrjob_t item;
item = hio->tmr.jobs[index];
item = hio->tmr.jobs[index];
do
{
@@ -100,7 +100,7 @@ static hio_tmridx_t sift_down (hio_t* hio, hio_tmridx_t index)
index = younger;
}
while (index < base);
hio->tmr.jobs[index] = item;
if (hio->tmr.jobs[index].idxptr) *hio->tmr.jobs[index].idxptr = index;
}