mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 02:39:58 +00:00
arp: Prevent uninitialized read of launch member variable
If anything happened to call arp functions in the wrong order and called IRegistrar's Issue function before SetApplicationLaunchProperty, we'd read from an uninitialized ApplicationLaunchProperty instance. Instead, we can always initialize it so if this does happen, then the outcome of doing such a thing is at least consistently reproducible.
This commit is contained in:
parent
9e7713c150
commit
b7d04d848d
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ private:
|
|||
|
||||
std::function<ResultCode(u64, ApplicationLaunchProperty, std::vector<u8>)> issue_process_id;
|
||||
bool issued = false;
|
||||
ApplicationLaunchProperty launch;
|
||||
ApplicationLaunchProperty launch{};
|
||||
std::vector<u8> control;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue