getopt: fix null pointer arithmetic ub
[musl] / src / ctype / tolower.c
1 #include <ctype.h>
2
3 int tolower(int c)
4 {
5         if (isupper(c)) return c | 32;
6         return c;
7 }
8
9 int __tolower_l(int c, locale_t l)
10 {
11         return tolower(c);
12 }
13
14 weak_alias(__tolower_l, tolower_l);