about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/setlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/setlocale.c b/locale/setlocale.c
index 5f152e3bba..1482465f43 100644
--- a/locale/setlocale.c
+++ b/locale/setlocale.c
@@ -149,7 +149,7 @@ new_composite_name (int category, const char *newnames[LC_ALL])
 			  _nl_current_names[i]);
       last_len = strlen (name);
       cumlen += _nl_category_name_sizes[i] + 1 + last_len + 1;
-      if (i > 0 && same && strcmp (name, newnames[0]) != 0)
+      if (same && strcmp (name, newnames[0]) != 0)
 	same = 0;
     }