[pango] Bug 591465 – Gimp crashes upon opening the font selection dialog



commit 6b7265c4d6fab1181d0453a845b67ab53fb19d2e
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Aug 11 17:06:57 2009 -0400

    Bug 591465 â?? Gimp crashes upon opening the font selection dialog
    
    Initialize count variables.

 pango/pango-ot-info.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 3cc24c7..1099a30 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -455,7 +455,7 @@ pango_ot_info_list_scripts (PangoOTInfo      *info,
 {
   hb_tag_t tt = get_hb_table_type (table_type);
   PangoOTTag *result;
-  unsigned int count;
+  unsigned int count = 0;
 
   hb_ot_layout_table_get_script_tags (info->hb_face, tt, &count, NULL);
   result = g_new (PangoOTTag, count + 1);
@@ -485,7 +485,7 @@ pango_ot_info_list_languages (PangoOTInfo      *info,
 {
   hb_tag_t tt = get_hb_table_type (table_type);
   PangoOTTag *result;
-  unsigned int count;
+  unsigned int count = 0;
 
   hb_ot_layout_script_get_language_tags (info->hb_face, tt, script_index, &count, NULL);
   result = g_new (PangoOTTag, count + 1);
@@ -519,7 +519,7 @@ pango_ot_info_list_features  (PangoOTInfo      *info,
 {
   hb_tag_t tt = get_hb_table_type (table_type);
   PangoOTTag *result;
-  unsigned int count;
+  unsigned int count = 0;
 
   hb_ot_layout_language_get_feature_tags (info->hb_face, tt, script_index, language_index, &count, NULL);
   result = g_new (PangoOTTag, count + 1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]