optimize malloc0
[musl] / src / locale / setlocale.c
index 623660c..40bc7ec 100644 (file)
@@ -21,7 +21,7 @@ char *__strchrnul(const char *, int);
 
 char *setlocale(int cat, const char *name)
 {
-       static volatile int lock[2];
+       static volatile int lock[1];
 
        if ((unsigned)cat > LC_ALL) return 0;