fix missing volatile qualifier on lock in __get_locale

This commit is contained in:
Jens Gustedt
2017-07-04 18:21:08 -04:00
committed by Rich Felker
parent 2e6e08423b
commit a08910fc2c
+1 -1
View File
@@ -26,7 +26,7 @@ static const char envvars[][12] = {
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;
const struct __locale_map *p;
struct __locale_map *new = 0;