projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix mrand48/jrand48 return value on 64-bit archs
[oweals/musl.git]
/
src
/
errno
/
__errno_location.c
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index 49654efd9ef2f292d5b131f843f88717d0ac8b2d..7172a1be39dbb1caf86715904552389083e2061b 100644
(file)
--- 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;
}