Prevent NULL pointer dereference

This commit is contained in:
twinaphex 2016-10-23 05:55:13 +02:00
parent 1cbc847133
commit 147893caed

View File

@ -162,7 +162,8 @@ static void print_buf_lines(file_list_t *list, char *buf,
fill_pathname_join_noext(
core_path,
settings->path.libretro_info,
extended ? core_pathname : line_start,
(extended && !string_is_empty(core_pathname))
? core_pathname : line_start,
sizeof(core_path));
path_remove_extension(core_path);