summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/id3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 603639d1f5..3a8296a8ae 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -856,8 +856,10 @@ bool mp3info(struct mp3entry *entry, const char *filename, bool v1first)
856 if(-1 == fd) 856 if(-1 == fd)
857 return true; 857 return true;
858 858
859#if CONFIG_HWCODEC != MASNONE
859 memset(entry, 0, sizeof(struct mp3entry)); 860 memset(entry, 0, sizeof(struct mp3entry));
860 861#endif
862
861 strncpy(entry->path, filename, sizeof(entry->path)); 863 strncpy(entry->path, filename, sizeof(entry->path));
862 864
863 entry->title = NULL; 865 entry->title = NULL;