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) if(-1 == fd) return true; +#if CONFIG_HWCODEC != MASNONE memset(entry, 0, sizeof(struct mp3entry)); - +#endif + strncpy(entry->path, filename, sizeof(entry->path)); entry->title = NULL;