diff options
author | Jens Gustedt <Jens.Gustedt@inria.fr> | 2017-06-24 11:54:25 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-07-04 18:21:08 -0400 |
commit | a08910fc2cc739f631b75b2d09b8d72a0d64d285 (patch) | |
tree | 83f213fef84071c2c9e34aec6431e31d5c7eaae4 | |
parent | 2e6e08423b95b1b2bce7568f650c2b69d8d8fb8b (diff) | |
download | musl-a08910fc2cc739f631b75b2d09b8d72a0d64d285.tar.gz musl-a08910fc2cc739f631b75b2d09b8d72a0d64d285.tar.bz2 musl-a08910fc2cc739f631b75b2d09b8d72a0d64d285.tar.xz musl-a08910fc2cc739f631b75b2d09b8d72a0d64d285.zip |
fix missing volatile qualifier on lock in __get_locale
-rw-r--r-- | src/locale/locale_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/locale_map.c b/src/locale/locale_map.c index c3e59174..188fcf39 100644 --- 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; |