summaryrefslogtreecommitdiff
path: root/pango/pango-ot-info.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-11 17:06:57 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-11 17:06:57 -0400
commit6b7265c4d6fab1181d0453a845b67ab53fb19d2e (patch)
treedfef442d12ea1d9d411ffa9b3b852b020e1fad40 /pango/pango-ot-info.c
parentc556ca970a90850b6c6a96033bb862e1ceb00866 (diff)
downloadpango-6b7265c4d6fab1181d0453a845b67ab53fb19d2e.tar.gz
Bug 591465 – Gimp crashes upon opening the font selection dialog
Initialize count variables.
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r--pango/pango-ot-info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 3cc24c74..1099a30b 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);