From ccea3b45b0e45abcbe7e17e91c4659c9e68d8ef5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 7 Aug 2018 15:23:19 +0200 Subject: [PATCH] newlib: newlocale: fix typo rendering ctype_ptr invalid Signed-off-by: Corinna Vinschen --- newlib/libc/locale/newlocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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