summaryrefslogtreecommitdiff
path: root/apps/metadata/metadata_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r--apps/metadata/metadata_common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c
index 4f001775f3..e1ef9a0d62 100644
--- a/apps/metadata/metadata_common.c
+++ b/apps/metadata/metadata_common.c
@@ -337,10 +337,7 @@ long parse_tag(const char* name, char* value, struct mp3entry* id3,
337 p = NULL; 337 p = NULL;
338 } 338 }
339 339
340 /* Do not overwrite already available metadata. Especially when reading 340 if (p)
341 * tags with e.g. multiple genres / artists. This way only the first
342 * of multiple entries is used, all following are dropped. */
343 if (p!=NULL && *p==NULL)
344 { 341 {
345 len = strlen(value); 342 len = strlen(value);
346 len = MIN(len, buf_remaining - 1); 343 len = MIN(len, buf_remaining - 1);