diff --git a/newlib/libc/locale/newlocale.c b/newlib/libc/locale/newlocale.c index c6c2a9ca9..0789d5fd9 100644 --- a/newlib/libc/locale/newlocale.c +++ b/newlib/libc/locale/newlocale.c @@ -147,7 +147,7 @@ _newlocale_r (struct _reent *p, int category_mask, const char *locale, tmp_locale.wctomb = base->wctomb; tmp_locale.mbtowc = base->mbtowc; tmp_locale.cjk_lang = base->cjk_lang; - tmp_locale.ctype_ptr - base->ctype_ptr; + tmp_locale.ctype_ptr = base->ctype_ptr; } #ifdef __HAVE_LOCALE_INFO__ /* Mark the values as "has still to be copied". We do this in