[pango] coretext: ensure weight is always initialized
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] coretext: ensure weight is always initialized
- Date: Wed, 6 May 2015 18:23:19 +0000 (UTC)
commit bc83ef791d091d91133b4d9c59fb5c758ce7aec2
Author: Kristian Rietveld <kris loopnest org>
Date: Wed May 6 20:22:31 2015 +0200
coretext: ensure weight is always initialized
pango/pangocoretext-fontmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 65be356..1b64f62 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]