mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Merge pull request #1098 from mprobinson/invalid-ctx-segfault
Fix segfault on invalid graphics context driver
This commit is contained in:
commit
fe57822e85
@ -77,7 +77,7 @@ const gfx_ctx_driver_t *gfx_ctx_find_driver(const char *ident)
|
||||
unsigned i;
|
||||
for (i = 0; i < ARRAY_SIZE(gfx_ctx_drivers); i++)
|
||||
{
|
||||
if (strcmp(gfx_ctx_drivers[i]->ident, ident) == 0)
|
||||
if (gfx_ctx_drivers[i] && strcmp(gfx_ctx_drivers[i]->ident, ident) == 0)
|
||||
return gfx_ctx_drivers[i];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user