projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e6e084
)
fix missing volatile qualifier on lock in __get_locale
author
Jens Gustedt
<Jens.Gustedt@inria.fr>
Sat, 24 Jun 2017 09:54:25 +0000
(11:54 +0200)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 4 Jul 2017 22:21:08 +0000
(18:21 -0400)
src/locale/locale_map.c
patch
|
blob
|
history
diff --git
a/src/locale/locale_map.c
b/src/locale/locale_map.c
index c3e591746fb00aeddeec0d8e5a10f25ccc006691..188fcf394ed29961d62abcc84c39c979daac1e6c 100644
(file)
--- a/
src/locale/locale_map.c
+++ b/
src/locale/locale_map.c
@@
-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;