From a6f0b1b53267869b1b644c48d9df066ca26f66a5 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 5 May 2020 21:37:47 +0300 Subject: [PATCH] Fix get_thread_affinity_mask (Linux/BSD) Uninitialized variable (facepalm). --- Utilities/Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index e3d06c5e1c..99ed4a16fc 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -2489,7 +2489,7 @@ u64 thread_ctrl::get_thread_affinity_mask() return 0; } - u64 result; + u64 result = 0; for (u32 core = 0; core < 64u; core++) {