mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Zero-initialize structures passed to FatFs functions.
This commit is contained in:
@ -185,7 +185,7 @@ namespace IOS::HLE::NWC24
|
||||
{
|
||||
static ErrorCode WriteFile(const std::string& filename, const std::vector<u8>& tmp_buffer)
|
||||
{
|
||||
FIL dst;
|
||||
FIL dst{};
|
||||
const auto open_error_code = f_open(&dst, filename.c_str(), FA_CREATE_ALWAYS | FA_WRITE);
|
||||
if (open_error_code != FR_OK)
|
||||
{
|
||||
@ -269,7 +269,7 @@ ErrorCode OpenVFF(const std::string& path, const std::string& filename,
|
||||
|
||||
Common::ScopeGuard vff_delete_guard{[&] { fs->Delete(PID_KD, PID_KD, path); }};
|
||||
|
||||
FATFS fatfs;
|
||||
FATFS fatfs{};
|
||||
const FRESULT fatfs_mount_error_code = f_mount(&fatfs, "", 0);
|
||||
if (fatfs_mount_error_code != FR_OK)
|
||||
{
|
||||
|
Reference in New Issue
Block a user