summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-07-21 10:45:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-07-21 15:06:28 +0000
commitf0e3a36fe4b06627d2c7293f42ede38944ff162c (patch)
treea2f0a2fe78c7ee9dfa47f59cfd5500bfdc8ad85d
parent8cd4b8da846526a5ea30270eac7863ba38b8ebe1 (diff)
downloadrockbox-f0e3a36fe4b06627d2c7293f42ede38944ff162c.tar.gz
rockbox-f0e3a36fe4b06627d2c7293f42ede38944ff162c.zip
autoresume: Properly check the path string, not the pointer.
(the pointer is _always_ valid as it's to a fixed buffer) Change-Id: I88489012b76ed3b5b214cf01da1a6260e259fe87
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index c60468a7dd..ef4b38da51 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1490,7 +1490,7 @@ static bool autoresumable(struct mp3entry *id3)
is_resumable = false;
- if (id3->path)
+ if (*id3->path)
{
for (path = global_settings.autoresume_paths;
*path; /* search terms left? */