eina thread - check return of pthread_attr_init

fix CID 1401031
This commit is contained in:
Carsten Haitzler 2020-09-19 23:37:22 +01:00
parent 2bea2c7b87
commit 485ecc24ed
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ _eina_thread_create(Eina_Thread *t, int affinity, void *(*func)(void *data), voi
sigset_t oldset, newset;
#endif
pthread_attr_init(&attr);
if (pthread_attr_init(&attr) != 0)
{
return EINA_FALSE;
}
if (affinity >= 0)
{
#ifdef EINA_HAVE_PTHREAD_AFFINITY