Merge pull request #9754 from realnc/fix-null-deref

Fix null pointer deref
This commit is contained in:
Twinaphex 2019-11-19 23:58:23 +01:00 committed by GitHub
commit b241b5769b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9588,7 +9588,7 @@ static bool rarch_environment_cb(unsigned cmd, void *data)
{
const struct retro_system_av_info **info = (const struct retro_system_av_info**)&data;
struct retro_system_av_info *av_info = &video_driver_av_info;
if (info && av_info)
if (data)
{
settings_t *settings = configuration_settings;
const bool no_video_reinit =