Fix segfault with null menu driver. (#7913)

This commit is contained in:
orbea 2019-01-06 20:34:25 -08:00 committed by bparker06
parent 5bedd981ec
commit d25b632b88

View File

@ -2072,8 +2072,9 @@ static bool menu_driver_init_internal(bool video_is_threaded)
if (menu_driver_data)
return true;
menu_driver_data = (menu_handle_t*)
menu_driver_ctx->init(&menu_userdata, video_is_threaded);
if (menu_driver_ctx->init)
menu_driver_data = (menu_handle_t*)
menu_driver_ctx->init(&menu_userdata, video_is_threaded);
if (!menu_driver_data || !menu_init(menu_driver_data))
goto error;