mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Prevent null pointer dereference
This commit is contained in:
parent
e8deea65a9
commit
7fdc38bf30
@ -40,6 +40,7 @@ typedef struct linuxraw_input
|
||||
|
||||
static void *linuxraw_input_init(void)
|
||||
{
|
||||
struct sigaction sa = {{0}};
|
||||
linuxraw_input_t *linuxraw = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
|
@ -165,8 +165,14 @@ bool menu_content_find_first_core(menu_content_ctx_defer_info_t *def_info,
|
||||
|
||||
if (!string_is_empty(default_info_dir))
|
||||
{
|
||||
const char *default_info_path = def_info->path;
|
||||
size_t default_info_length = def_info->len;
|
||||
const char *default_info_path = NULL;
|
||||
size_t default_info_length = 0;
|
||||
|
||||
if (def_info)
|
||||
{
|
||||
default_info_path = def_info->path;
|
||||
default_info_length = def_info->len;
|
||||
}
|
||||
|
||||
if (!string_is_empty(default_info_path))
|
||||
fill_pathname_join(def_info->s,
|
||||
|
Loading…
x
Reference in New Issue
Block a user