1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Check for *pth dereference on pthread_join

This commit is contained in:
Con Kolivas 2013-05-19 19:34:12 +10:00
parent 1c5c8df6ff
commit bbb797067f

View File

@ -2810,7 +2810,7 @@ static void __kill_work(void)
if (thr && PTH(thr) != 0L)
pth = &thr->pth;
thr_info_cancel(thr);
if (pth)
if (pth && *pth)
pthread_join(*pth, NULL);
}