cores_names_size was used in a conditional branch without being

initialized, fixes a crash on content reload.
This commit is contained in:
aliaspider 2017-01-17 13:03:39 +01:00
parent 14660a8c12
commit ee7fd79fb2

View File

@ -5745,7 +5745,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
{
unsigned cores_names_len;
size_t cores_names_size;
size_t cores_names_size = 0;
unsigned cores_paths_len;
size_t cores_paths_size;
struct string_list *cores_names =