autoresume: Properly check the path string, not the pointer.

(the pointer is _always_ valid as it's to a fixed buffer)

Change-Id: I88489012b76ed3b5b214cf01da1a6260e259fe87
This commit is contained in:
Solomon Peachy 2021-07-21 10:45:51 -04:00
parent 8cd4b8da84
commit f0e3a36fe4

View file

@ -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? */