diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-06-21 22:22:50 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-06-21 22:22:50 -0400 |
commit | e75e07e1b68b5ce59b0a77f321c90a091682e362 (patch) | |
tree | cab184a1f4f5901dd93c9bad870c430ff8d93de2 /apps/plugins/sliding_puzzle.c | |
parent | e1c5a3e296963bbe957de795287bf91de56d2e42 (diff) | |
download | rockbox-e75e07e1b68b5ce59b0a77f321c90a091682e362.tar.gz rockbox-e75e07e1b68b5ce59b0a77f321c90a091682e362.zip |
plugin sliding puzzle fix unneeded check
Change-Id: Iab345d2ec490311fc8a5482c52dbed14f5e11070
Diffstat (limited to 'apps/plugins/sliding_puzzle.c')
-rw-r--r-- | apps/plugins/sliding_puzzle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/sliding_puzzle.c b/apps/plugins/sliding_puzzle.c index a34cb77669..af6aa40ea0 100644 --- a/apps/plugins/sliding_puzzle.c +++ b/apps/plugins/sliding_puzzle.c | |||
@@ -468,8 +468,8 @@ static const char * initial_bmp_path=NULL; | |||
468 | static const char * get_albumart_bmp_path(void) | 468 | static const char * get_albumart_bmp_path(void) |
469 | { | 469 | { |
470 | struct mp3entry* track = rb->audio_current_track(); | 470 | struct mp3entry* track = rb->audio_current_track(); |
471 | 471 | /* Note rb->audio_current_track->path should never be null */ | |
472 | if (!track || !track->path || track->path[0] == '\0') | 472 | if (!track || track->path[0] == '\0') |
473 | return NULL; | 473 | return NULL; |
474 | 474 | ||
475 | if (!rb->search_albumart_files(track, "", albumart_path, MAX_PATH ) ) | 475 | if (!rb->search_albumart_files(track, "", albumart_path, MAX_PATH ) ) |