aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-04 12:52:02 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-01-04 12:52:02 +0000
commit6963af2327a9738d22716759dc39526a4935ecde (patch)
treeed1d8535cc08c476c50cd1edbeb220e87dd3869d
parent4aaee0aecdac6106763cd0428dfe0e589b1744cc (diff)
fix uninitialized warning
git-svn-id: http://skia.googlecode.com/svn/trunk@669 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/ports/SkFontHost_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_linux.cpp b/src/ports/SkFontHost_linux.cpp
index ebebd08bda..e85dff4e2d 100644
--- a/src/ports/SkFontHost_linux.cpp
+++ b/src/ports/SkFontHost_linux.cpp
@@ -403,7 +403,7 @@ static void load_system_fonts() {
GetFullPathForSysFonts(&filename, name.c_str());
SkString realname;
- SkTypeface::Style style;
+ SkTypeface::Style style = SkTypeface::kNormal; // avoid uninitialized warning
if (!get_name_and_style(filename.c_str(), &realname, &style)) {
SkDebugf("------ can't load <%s> as a font\n", filename.c_str());