mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Prevent null pointer dereference
This commit is contained in:
parent
9ecf04a999
commit
296c869b4c
@ -1312,7 +1312,8 @@ bool retroarch_main_init(int argc, char *argv[])
|
||||
settings->multimedia.builtin_imageviewer_enable))
|
||||
{
|
||||
char *fullpath = NULL;
|
||||
if (runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath))
|
||||
if (runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath)
|
||||
&& !string_is_empty(fullpath))
|
||||
{
|
||||
switch (retroarch_path_is_media_type(fullpath))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user