commit 8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61
parent b5a7f1835fba33549baf4e9945f47de36b773571
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 15 Jan 2022 15:33:42 +0300
test_upgrade: use 'volatile' for variable with multithread access
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
@@ -572,7 +572,7 @@ static pthread_t pt;
/**
* Will be set to the upgraded socket.
*/
-static struct wr_socket *usock;
+static struct wr_socket *volatile usock;
/**
* Thread we use to run the interaction with the upgraded socket.