mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Fix two serious warnings
This commit is contained in:
parent
66c006d1d8
commit
99099c34ef
@ -39,9 +39,9 @@ void main_exit_save_config(void)
|
||||
if (settings->config_save_on_exit && *global->config_path)
|
||||
{
|
||||
/* restore original paths in case per-core organization is enabled */
|
||||
if (settings->sort_savefiles_enable && orig_savefile_dir != '\0')
|
||||
if (settings->sort_savefiles_enable && orig_savefile_dir[0] != '\0')
|
||||
strlcpy(global->savefile_dir,orig_savefile_dir,sizeof(global->savefile_dir));
|
||||
if (settings->sort_savestates_enable && orig_savestate_dir != '\0')
|
||||
if (settings->sort_savestates_enable && orig_savestate_dir[0] != '\0')
|
||||
strlcpy(global->savestate_dir,orig_savestate_dir,sizeof(global->savestate_dir));
|
||||
|
||||
/* Save last core-specific config to the default config location,
|
||||
|
Loading…
x
Reference in New Issue
Block a user