Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137830005
D53908.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
476 B
Referenced Files
None
Subscribers
None
D53908.id.diff
View Options
diff --git a/lib/libc/locale/xlocale_private.h b/lib/libc/locale/xlocale_private.h
--- a/lib/libc/locale/xlocale_private.h
+++ b/lib/libc/locale/xlocale_private.h
@@ -200,11 +200,9 @@
*/
static inline locale_t __get_locale(void)
{
-
- if (!__has_thread_locale) {
+ if (!__has_thread_locale || __thread_locale == NULL)
return (&__xlocale_global_locale);
- }
- return (__thread_locale ? __thread_locale : &__xlocale_global_locale);
+ return (__thread_locale);
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 27, 5:35 AM (4 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26224225
Default Alt Text
D53908.id.diff (476 B)
Attached To
Mode
D53908: libc: Simplify __get_locale()
Attached
Detach File
Event Timeline
Log In to Comment