fix crashes in x32 __tls_get_addr
[musl] / src / errno / __errno_location.c
index 49654ef..7172a1b 100644 (file)
@@ -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;
 }