(menu_displaylist.c) Fix uninitialized value usage

opts did not get assigned when RUNLOOP_CTL_GET_CORE_OPTION_SIZE failed.
This commit is contained in:
Higor Eurípedes 2015-12-12 22:40:39 -03:00
parent fd8bfc4b93
commit 9f3884a33e

View File

@ -3063,7 +3063,7 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
case DISPLAYLIST_CORE_OPTIONS:
if (runloop_ctl(RUNLOOP_CTL_HAS_CORE_OPTIONS, NULL))
{
size_t opts;
size_t opts = 0;
runloop_ctl(RUNLOOP_CTL_GET_CORE_OPTION_SIZE, &opts);