return false if info is NULL inside retro_load_game
authororbea <ovariegata@yahoo.com>
Tue, 24 Jan 2017 20:48:44 +0000 (12:48 -0800)
committerorbea <ovariegata@yahoo.com>
Tue, 24 Jan 2017 20:50:17 +0000 (12:50 -0800)
frontend/libretro.c

index 9e2d031..76f0b44 100644 (file)
@@ -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);