From 59f37d7f8672d1915c834511802ea07c8ba2a3c8 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 24 Jan 2017 12:48:44 -0800 Subject: return false if info is NULL inside retro_load_game --- frontend/libretro.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'frontend') diff --git a/frontend/libretro.c b/frontend/libretro.c index 9e2d031..76f0b44 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); -- cgit v1.2.3