Merge pull request #12254 from repojohnray/valgrind

Fix issue detected by valgrind
This commit is contained in:
Autechre 2021-04-10 17:52:45 +02:00 committed by GitHub
commit 10c9d485c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3719,7 +3719,7 @@ bool config_unload_override(void)
bool config_load_remap(const char *directory_input_remapping,
void *data)
{
char content_dir_name[PATH_MAX_LENGTH];
char content_dir_name[PATH_MAX_LENGTH] = { 0 };
/* path to the directory containing retroarch.cfg (prefix) */
char remap_directory[PATH_MAX_LENGTH];
/* final path for core-specific configuration (prefix+suffix) */