summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_thread.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:37:22 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-09-19 23:37:22 +0100
commit485ecc24ed17af59f7581b4d145bd4e6b4b8363a (patch)
tree29b67b1b04370047b185fedbc80a4fa451d5f78e /src/lib/eina/eina_thread.c
parent2bea2c7b87a13de3da8c5e73a0b1034c565d34d9 (diff)
eina thread - check return of pthread_attr_init
fix CID 1401031
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_thread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c
index 369711f2d8..18e7ac58d6 100644
--- a/src/lib/eina/eina_thread.c
+++ b/src/lib/eina/eina_thread.c
@@ -66,7 +66,10 @@ _eina_thread_create(Eina_Thread *t, int affinity, void *(*func)(void *data), voi
66 sigset_t oldset, newset; 66 sigset_t oldset, newset;
67#endif 67#endif
68 68
69 pthread_attr_init(&attr); 69 if (pthread_attr_init(&attr) != 0)
70 {
71 return EINA_FALSE;
72 }
70 if (affinity >= 0) 73 if (affinity >= 0)
71 { 74 {
72#ifdef EINA_HAVE_PTHREAD_AFFINITY 75#ifdef EINA_HAVE_PTHREAD_AFFINITY