1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/apps/metadata.c b/apps/metadata.c
index 1680fd7..cba2c08 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -286,6 +286,9 @@ bool mp3info(struct mp3entry *entry, const char *filename)
     if (fd < 0)
         return true;

+#if CONFIG_CODEC != SWCODEC
+    memset(entry, 0, sizeof(struct mp3entry));
+#endif
     result = !get_mp3_metadata(fd, entry);

     close(fd);