aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-07-23 17:44:41 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-07-23 17:44:41 +0000
commitbfbd4fff66da7fa4409a4d4bf838b85ef69a7200 (patch)
tree8aff647c094f7af065f7ce6bbcc129b70dae3681 /src/ports
parent41f8d4807b637d911d4706bd381638b8c0d09c93 (diff)
fix uninitialized library variable
git-svn-id: http://skia.googlecode.com/svn/trunk@287 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 253541bded..8bf44784c2 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -907,7 +907,7 @@ SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
*/
SkTypeface::Style find_name_and_style(SkStream* stream, SkString* name) {
FT_Library library;
- if (!InitFreetype()) {
+ if (FT_Init_FreeType(&library)) {
name->set(NULL);
return SkTypeface::kNormal;
}