From 12d3bd0716d7ec01edc06ed48eab3decaaa8b5b9 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sat, 15 May 2004 19:39:55 +0000 Subject: [PATCH] fix a bug in update if unable to open mp4 file, would cause a segfault git-svn-id: https://svn.musicpd.org/mpd/trunk@1025 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/tag.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tag.c b/src/tag.c index ccd7b421e..dd1ea852c 100644 --- a/src/tag.c +++ b/src/tag.c @@ -285,6 +285,7 @@ MpdTag * mp4TagDup(char * utf8file) { int mp4MetadataFound = 0; ret = mp4DataDup(utf8file,&mp4MetadataFound); + if(!ret) return NULL; if(!mp4MetadataFound) { MpdTag * temp = id3Dup(utf8file); if(temp) {