diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-20 14:43:45 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-20 14:43:45 -0700 |
commit | 9ae9ae2a68439cbc84a719c0dacf6984703e77cb (patch) | |
tree | db0455c10ff6063f3f2fb2cfee80cfcb13614245 /core/src/fxge/ge | |
parent | 7830e9e38d4155335b7287f8edb2b3a6cece5b01 (diff) | |
download | pdfium-9ae9ae2a68439cbc84a719c0dacf6984703e77cb.tar.xz |
Fix some -Wmaybe-uninitialized errors.
- Break up CPDF_DIBSource::DownSampleScanline() into smaller functions.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1287843004 .
Diffstat (limited to 'core/src/fxge/ge')
-rw-r--r-- | core/src/fxge/ge/fx_ge_fontmap.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp index 561b7d9b66..d8f20469b3 100644 --- a/core/src/fxge/ge/fx_ge_fontmap.cpp +++ b/core/src/fxge/ge/fx_ge_fontmap.cpp @@ -1435,13 +1435,11 @@ FX_DWORD CFX_FolderFontInfo::GetFontData(void* hFont, } } FX_DWORD datasize = 0; - FX_DWORD offset; + FX_DWORD offset = 0; if (table == 0) { datasize = pFont->m_FontOffset ? 0 : pFont->m_FileSize; - offset = 0; } else if (table == 0x74746366) { datasize = pFont->m_FontOffset ? pFont->m_FileSize : 0; - offset = 0; } else { FX_DWORD nTables = pFont->m_FontTables.GetLength() / 16; for (FX_DWORD i = 0; i < nTables; i++) { |