From 59f37d7f8672d1915c834511802ea07c8ba2a3c8 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 24 Jan 2017 12:48:44 -0800 Subject: [PATCH] return false if info is NULL inside retro_load_game --- frontend/libretro.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5