aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTwinaphex2017-01-24 22:42:06 +0100
committerGitHub2017-01-24 22:42:06 +0100
commitca1cdd06d6453d9409f89a0bae09a91df6fdc21a (patch)
treee012170bd34bd793293de30b73a99a99cb4827a1
parentb580cc4f026c8b1facbf794f39fb3a06238dd484 (diff)
parent59f37d7f8672d1915c834511802ea07c8ba2a3c8 (diff)
downloadpcsx_rearmed-ca1cdd06d6453d9409f89a0bae09a91df6fdc21a.tar.gz
pcsx_rearmed-ca1cdd06d6453d9409f89a0bae09a91df6fdc21a.tar.bz2
pcsx_rearmed-ca1cdd06d6453d9409f89a0bae09a91df6fdc21a.zip
Merge pull request #97 from orbea/error
return false if info is NULL inside retro_load_game
-rw-r--r--frontend/libretro.c3
1 files changed, 3 insertions, 0 deletions
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);