summaryrefslogtreecommitdiff
path: root/locale/setlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/setlocale.c')
-rw-r--r--locale/setlocale.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/locale/setlocale.c b/locale/setlocale.c
index 4eceea6446..ff7192f45d 100644
--- a/locale/setlocale.c
+++ b/locale/setlocale.c
@@ -49,6 +49,9 @@ static struct locale_data * *const _nl_current[] =
[category] = &_nl_current_##category,
#include "categories.def"
#undef DEFINE_CATEGORY
+ /* We need this additional element to simplify the code. It must
+ simply be != NULL. */
+ [LC_ALL] = (struct locale_data **) ~0ul
};
/* Array indexed by category of pointers to _nl_C_CATEGORY slots.