mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
fix missing volatile qualifier on lock in __get_locale
This commit is contained in:
parent
2e6e08423b
commit
a08910fc2c
@ -26,7 +26,7 @@ static const char envvars[][12] = {
|
|||||||
|
|
||||||
const struct __locale_map *__get_locale(int cat, const char *val)
|
const struct __locale_map *__get_locale(int cat, const char *val)
|
||||||
{
|
{
|
||||||
static int lock[2];
|
static volatile int lock[2];
|
||||||
static void *volatile loc_head;
|
static void *volatile loc_head;
|
||||||
const struct __locale_map *p;
|
const struct __locale_map *p;
|
||||||
struct __locale_map *new = 0;
|
struct __locale_map *new = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user