diff options
Diffstat (limited to 'locale/setlocale.c')
-rw-r--r-- | locale/setlocale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/locale/setlocale.c b/locale/setlocale.c index 0964b8387c..bdc65f523e 100644 --- a/locale/setlocale.c +++ b/locale/setlocale.c @@ -204,6 +204,9 @@ new_composite_name (int category, const char *newnames[LC_ALL]) static inline void setname (int category, const char *name) { + if (_nl_current_names[category] == name) + return; + if (_nl_current_names[category] != _nl_C_name) free ((void *) _nl_current_names[category]); |