Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'packages/patches/pango-ctfaces-nil-check.patch')
-rw-r--r--packages/patches/pango-ctfaces-nil-check.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/patches/pango-ctfaces-nil-check.patch b/packages/patches/pango-ctfaces-nil-check.patch
new file mode 100644
index 0000000..6aaeca5
--- /dev/null
+++ b/packages/patches/pango-ctfaces-nil-check.patch
@@ -0,0 +1,28 @@
+diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
+old mode 100644
+new mode 100755
+index 27132c4..5de6209
+--- a/pango/pangocoretext-fontmap.c
++++ b/pango/pangocoretext-fontmap.c
+@@ -573,8 +573,8 @@ pango_core_text_family_list_faces (PangoFontFamily *family,
+ CFArrayRef ctfaces;
+ CFArrayRef font_descriptors;
+ CFDictionaryRef attributes;
+- CFIndex i, count;
+-
++ CFIndex i;
++ CFIndex count = 0;
+ CFTypeRef keys[] = {
+ (CFTypeRef) kCTFontFamilyNameAttribute
+ };
+@@ -605,7 +605,9 @@ pango_core_text_family_list_faces (PangoFontFamily *family,
+
+ italic_faces = g_hash_table_new (g_direct_hash, g_direct_equal);
+
+- count = CFArrayGetCount (ctfaces);
++ if (ctfaces)
++ count = CFArrayGetCount (ctfaces);
++
+ for (i = 0; i < count; i++)
+ {
+ PangoCoreTextFace *face;