aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/locale/uselocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/locale/uselocale.c')
-rw-r--r--newlib/libc/locale/uselocale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/locale/uselocale.c b/newlib/libc/locale/uselocale.c
index 83ebcdd..799fb72 100644
--- a/newlib/libc/locale/uselocale.c
+++ b/newlib/libc/locale/uselocale.c
@@ -64,9 +64,9 @@ _uselocale_r (struct _reent *p, struct __locale_t *newloc)
if (!current_locale)
current_locale = LC_GLOBAL_LOCALE;
if (newloc == LC_GLOBAL_LOCALE)
- p->_locale = NULL;
+ _REENT_LOCALE(p) = NULL;
else if (newloc)
- p->_locale = newloc;
+ _REENT_LOCALE(p) = newloc;
return current_locale;
}