From: orbea Date: Tue, 24 Jan 2017 20:48:44 +0000 (-0800) Subject: return false if info is NULL inside retro_load_game X-Git-Tag: r24l~809^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59f37d7f8672d1915c834511802ea07c8ba2a3c8;p=pcsx_rearmed.git return false if info is NULL inside retro_load_game --- diff --git a/frontend/libretro.c b/frontend/libretro.c index 9e2d0310..76f0b441 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -994,6 +994,9 @@ strcasestr(const char *s, const char*find) bool retro_load_game(const struct retro_game_info *info) { + if (!info) + return false; + size_t i; bool is_m3u = (strcasestr(info->path, ".m3u") != NULL);