summaryrefslogtreecommitdiff
path: root/src/errno/__errno_location.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/errno/__errno_location.c')
-rw-r--r--src/errno/__errno_location.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/errno/__errno_location.c b/src/errno/__errno_location.c
index 49654efd..7172a1be 100644
--- a/src/errno/__errno_location.c
+++ b/src/errno/__errno_location.c
@@ -2,7 +2,5 @@
int *__errno_location(void)
{
- static int e;
- if (libc.has_thread_pointer) return &__pthread_self()->errno_val;
- return &e;
+ return &__pthread_self()->errno_val;
}