Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2569)

Unified Diff: core/src/fxge/ge/fx_ge_fontmap.cpp

Issue 1287843004: Fix some -Wmaybe-uninitialized errors. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: address comments, rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_render/render_int.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxge/ge/fx_ge_fontmap.cpp
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index 561b7d9b6633c5df3bb597e55f5cef0583ee62d1..d8f20469b3dd9ddea66413e0c6de794c6e68446c 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++) {
« no previous file with comments | « core/src/fpdfapi/fpdf_render/render_int.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698