X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flocale%2Fsetlocale.c;h=40bc7ece16503b036d5683f71ec09cf8e6322229;hb=424eab2225ff3f8e3ae9f9eec9dacf2f68b71a2f;hp=623660cc419347b5f71b3929561e37a664eec6cd;hpb=16319a5df9d50cfc642ffc8db76bc36562d4b3dd;p=musl diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c index 623660cc..40bc7ece 100644 --- a/src/locale/setlocale.c +++ b/src/locale/setlocale.c @@ -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;