提交 a08910fc 编写于 作者: J Jens Gustedt 提交者: Rich Felker

fix missing volatile qualifier on lock in __get_locale

上级 2e6e0842
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册