diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-10-22 20:01:07 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2017-10-22 20:01:07 +0000 |
| commit | 1f04a45950ad1bf0dd52f8067d3b76afa3be8355 (patch) | |
| tree | 5f0df76443783d29352e052ddd4e2d33102278e7 /include | |
| parent | 7421ff0751fadff2b6f5154f43067b869509603f (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/runetype.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/runetype.h b/include/runetype.h index 6aad915b5604..dcbb226bb2d8 100644 --- a/include/runetype.h +++ b/include/runetype.h @@ -95,9 +95,7 @@ static __inline const _RuneLocale *__getCurrentRuneLocale(void) if (_ThreadRuneLocale) return _ThreadRuneLocale; - if (_CurrentRuneLocale) - return _CurrentRuneLocale; - return &_DefaultRuneLocale; + return _CurrentRuneLocale; } #endif /* __NO_TLS || __RUNETYPE_INTERNAL */ #define _CurrentRuneLocale (__getCurrentRuneLocale()) |
