summaryrefslogtreecommitdiff
path: root/src/threads/tss_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/tss_set.c')
-rw-r--r--src/threads/tss_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/tss_set.c b/src/threads/tss_set.c
index b9c39c75..899bd071 100644
--- a/src/threads/tss_set.c
+++ b/src/threads/tss_set.c
@@ -3,5 +3,5 @@
int tss_set(tss_t key, void *val)
{
- return pthread_setspecific(key, val);
+ return pthread_setspecific(key, val) == 0 ? thrd_success : thrd_error;
}