Browse Source

Check for *pth dereference on pthread_join

nfactor-troky
Con Kolivas 12 years ago
parent
commit
bbb797067f
  1. 2
      cgminer.c

2
cgminer.c

@ -2810,7 +2810,7 @@ static void __kill_work(void) @@ -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);
}

Loading…
Cancel
Save