X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ferrno%2F__errno_location.c;h=7172a1be39dbb1caf86715904552389083e2061b;hb=adfe682eb0d77c6afc751f5e407d9da39623c24e;hp=841910764590db9ae00f75270d1356428458d114;hpb=dab441aea240f3b7c18a26d2ef51979ea36c301c;p=oweals%2Fmusl.git diff --git a/src/errno/__errno_location.c b/src/errno/__errno_location.c index 84191076..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_ptr; - return &e; + return &__pthread_self()->errno_val; }