Procházet zdrojové kódy

kernel/thread: Ensure stack_top and argument are always initialized

Lioncash před 3 roky
rodič
revize
dddc9bb8f1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/hle/kernel/k_thread.h

+ 2 - 2
src/core/hle/kernel/k_thread.h

@@ -784,8 +784,8 @@ private:
     std::vector<KSynchronizationObject*> wait_objects_for_debugging;
     VAddr mutex_wait_address_for_debugging{};
     ThreadWaitReasonForDebugging wait_reason_for_debugging{};
-    uintptr_t argument;
-    VAddr stack_top;
+    uintptr_t argument{};
+    VAddr stack_top{};
 
 public:
     using ConditionVariableThreadTreeType = ConditionVariableThreadTree;