about summary refs log tree commit diff
path: root/src/locale/__setlocalecat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/__setlocalecat.c')
-rw-r--r--src/locale/__setlocalecat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/__setlocalecat.c b/src/locale/__setlocalecat.c
index 1c894d9c..c93e9ba0 100644
--- a/src/locale/__setlocalecat.c
+++ b/src/locale/__setlocalecat.c
@@ -17,7 +17,7 @@ char *__strchrnul(const char *, int);
 
 static struct __locale_map *findlocale(const char *name, size_t n)
 {
-	static void *loc_head;
+	static void *volatile loc_head;
 	struct __locale_map *p, *new, *old_head;
 	const char *path = 0, *z;
 	char buf[256];