From 672bd1706a990069dce401afead6c2ecfcdb3357 Mon Sep 17 00:00:00 2001 From: JUN FANG Date: Thu, 2 Apr 2015 10:05:06 -0700 Subject: Fix uninitialized face in fx_ge_font.cpp MSAN reported this issue when I tried to reproduce 460936 in the last version of freetype on Linux. BUG=N/A R=thestig@chromium.org Review URL: https://codereview.chromium.org/1050333002 --- core/src/fxge/ge/fx_ge_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/fxge/ge/fx_ge_font.cpp b/core/src/fxge/ge/fx_ge_font.cpp index f9e1fe61df..ea59a48185 100644 --- a/core/src/fxge/ge/fx_ge_font.cpp +++ b/core/src/fxge/ge/fx_ge_font.cpp @@ -166,7 +166,7 @@ static FXFT_Face FT_LoadFont(FX_LPBYTE pData, int size) FXFT_Init_FreeType(&CFX_GEModule::Get()->GetFontMgr()->m_FTLibrary); } library = CFX_GEModule::Get()->GetFontMgr()->m_FTLibrary; - FXFT_Face face; + FXFT_Face face = NULL; int error = FXFT_New_Memory_Face(library, pData, size, 0, &face); if (error) { return NULL; -- cgit v1.2.3