diff options
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r-- | newlib/libc/locale/locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index 81d6ae2bc..e1f45335a 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -110,9 +110,6 @@ _DEFUN(_setlocale_r, (p, category, locale), int category _AND _CONST char *locale) { - static char lc_ctype[8] = "C"; - static char last_lc_ctype[8] = "C"; - #ifndef MB_CAPABLE if (locale) { @@ -123,6 +120,9 @@ _DEFUN(_setlocale_r, (p, category, locale), } return "C"; #else + static char lc_ctype[8] = "C"; + static char last_lc_ctype[8] = "C"; + if (locale) { if (category != LC_CTYPE) |