From f0e3a36fe4b06627d2c7293f42ede38944ff162c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 21 Jul 2021 10:45:51 -0400 Subject: autoresume: Properly check the path string, not the pointer. (the pointer is _always_ valid as it's to a fixed buffer) Change-Id: I88489012b76ed3b5b214cf01da1a6260e259fe87 --- apps/playback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/playback.c') 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? */ -- cgit v1.2.3