mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Apply the same fix to another part of the code.
This commit is contained in:
parent
c89a538431
commit
21bdf835d9
@ -1904,7 +1904,9 @@ rarch_setting_t *setting_data_get_mainmenu(bool regenerate)
|
||||
APPEND(terminator);
|
||||
|
||||
/* flatten this array to save ourselves some kilobytes */
|
||||
return (rarch_setting_t*)realloc(list, sizeof(rarch_setting_t) * index);
|
||||
list=realloc(list, sizeof(rarch_setting_t) * index);
|
||||
/* do not optimize into return realloc(), list is static and must be written */
|
||||
return (rarch_setting_t*)list;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -2255,5 +2257,6 @@ rarch_setting_t *setting_data_get_list(void)
|
||||
|
||||
/* flatten this array to save ourselves some kilobytes */
|
||||
list=realloc(list, sizeof(rarch_setting_t) * index);
|
||||
/* do not optimize into return realloc(), list is static and must be written */
|
||||
return (rarch_setting_t*)list;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user