Skip to content

Commit

Permalink
Fix crash when content has no extension (#16078)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Jan 5, 2024
1 parent 01edfbf commit a3e9525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gfx/gfx_thumbnail_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ bool gfx_thumbnail_set_content_playlist(
const char* base_name = path_basename(path_data->content_path);
strlcpy(tmp_buf, base_name, sizeof(tmp_buf));
content_name_no_ext = path_remove_extension(tmp_buf);
if (!content_name_no_ext)
content_name_no_ext = tmp_buf;

gfx_thumbnail_fill_content_img(path_data->content_img_full,
sizeof(path_data->content_img_full), content_name_no_ext,false);
Expand Down

0 comments on commit a3e9525

Please sign in to comment.