summaryrefslogtreecommitdiff
path: root/package/libid3tag/patches/patch-compat_gperf
blob: a70837638c2ea146a81e40661af591a90d843fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- libid3tag-0.15.1b.orig/compat.gperf	2004-01-23 10:41:32.000000000 +0100
+++ libid3tag-0.15.1b/compat.gperf	2013-10-16 12:34:31.000000000 +0200
@@ -236,6 +236,10 @@ int id3_compat_fixup(struct id3_tag *tag
 
     encoding = id3_parse_uint(&data, 1);
     string   = id3_parse_string(&data, end - data, encoding, 0);
+    if (!string)
+    {
+	continue;
+    }
 
     if (id3_ucs4_length(string) < 4) {
       free(string);