summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorJUN FANG <jun_fang@foxitsoftware.com>2015-04-02 10:05:06 -0700
committerJUN FANG <jun_fang@foxitsoftware.com>2015-04-02 10:05:06 -0700
commit672bd1706a990069dce401afead6c2ecfcdb3357 (patch)
tree4c427622c3ff043d0fc0f3951681ab89f95ce438 /core/src
parent7e75ed5a0a828272219417551d736349fc7e86ad (diff)
downloadpdfium-672bd1706a990069dce401afead6c2ecfcdb3357.tar.xz
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
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fxge/ge/fx_ge_font.cpp2
1 files changed, 1 insertions, 1 deletions
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;