aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-25 04:34:59 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-25 04:34:59 +0000
commit6ab83ff7ab7027f5ed7a91dcd3c0aeeb082c1f39 (patch)
tree1c75c88d91e0ceec93a53ff0e9c53493431ac9f6
parente24513ed3a7909c5395c434c2150c319829271d7 (diff)
downloadmpd-6ab83ff7ab7027f5ed7a91dcd3c0aeeb082c1f39.tar.gz
mpd-6ab83ff7ab7027f5ed7a91dcd3c0aeeb082c1f39.tar.xz
mpd-6ab83ff7ab7027f5ed7a91dcd3c0aeeb082c1f39.zip
fix a bug in mp4tagDup, where !mp4MetaFound and forgot to check that ret!=NULL
git-svn-id: https://svn.musicpd.org/mpd/branches/branch-0.10.3@1152 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tag.c b/src/tag.c
index b16b80d72..480bcfef5 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -274,7 +274,7 @@ MpdTag * mp4TagDup(char * utf8file) {
int mp4MetadataFound = 0;
ret = mp4DataDup(utf8file,&mp4MetadataFound);
- if(!mp4MetadataFound) {
+ if(ret && !mp4MetadataFound) {
MpdTag * temp = id3Dup(utf8file);
if(temp) {
temp->time = ret->time;