From 9105e771afece456835adf911735be0e8d27dc87 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Wed, 26 Apr 2023 10:10:45 +0100 Subject: [PATCH] wgl: Fix unintentional assignment on assert. Spotted by Nanley Chery. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4427 Reviewed-by: Jesse Natalie Reviewed-by: Charmaine Lee Reviewed-by: Neha Bhende Cc: mesa-stable Part-of: --- src/gallium/frontends/wgl/stw_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/wgl/stw_tls.c b/src/gallium/frontends/wgl/stw_tls.c index 0e8c177..2a5d3ce 100644 --- a/src/gallium/frontends/wgl/stw_tls.c +++ b/src/gallium/frontends/wgl/stw_tls.c @@ -306,7 +306,7 @@ stw_tls_get_data(void) } assert(data); - assert(data->dwThreadId = GetCurrentThreadId()); + assert(data->dwThreadId == GetCurrentThreadId()); assert(data->next == NULL); return data; -- 2.7.4