fix uninitialized warning
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Jan 2011 12:52:02 +0000 (12:52 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 4 Jan 2011 12:52:02 +0000 (12:52 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@669 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontHost_linux.cpp

index ebebd08..e85dff4 100644 (file)
@@ -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());