summaryrefslogtreecommitdiff
path: root/pango/pangocoretext-fontmap.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@loopnest.org>2015-05-06 20:22:31 +0200
committerKristian Rietveld <kris@loopnest.org>2015-05-06 20:22:31 +0200
commitbc83ef791d091d91133b4d9c59fb5c758ce7aec2 (patch)
tree4ded7418d2940d7fdc97c37fea0a5511953985d5 /pango/pangocoretext-fontmap.c
parent61dd7da69458e8443343eb71d7336b458f834700 (diff)
downloadpango-bc83ef791d091d91133b4d9c59fb5c758ce7aec2.tar.gz
coretext: ensure weight is always initialized
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r--pango/pangocoretext-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 65be3560..1b64f626 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -291,7 +291,7 @@ ct_font_descriptor_get_weight (CTFontDescriptorRef desc)
CFDictionaryRef dict;
CFNumberRef cf_number;
CGFloat value;
- PangoWeight weight;
+ PangoWeight weight = PANGO_WEIGHT_NORMAL;
dict = CTFontDescriptorCopyAttribute (desc, kCTFontTraitsAttribute);
cf_number = (CFNumberRef)CFDictionaryGetValue (dict,