getopt: fix null pointer arithmetic ub
[musl] / src / locale / c_locale.c
1 #include "locale_impl.h"
2 #include <stdint.h>
3
4 static const uint32_t empty_mo[] = { 0x950412de, 0, -1, -1, -1 };
5
6 const struct __locale_map __c_dot_utf8 = {
7         .map = empty_mo,
8         .map_size = sizeof empty_mo,
9         .name = "C.UTF-8"
10 };
11
12 const struct __locale_struct __c_locale = { 0 };
13 const struct __locale_struct __c_dot_utf8_locale = {
14         .cat[LC_CTYPE] = &__c_dot_utf8
15 };