diff options
author | Lei Zhang <thestig@chromium.org> | 2015-08-20 14:59:45 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-08-20 14:59:45 -0700 |
commit | f85f4e42838e9d4c2cdbcd365970d42de6f826a0 (patch) | |
tree | f79d4dce64f64d6862702aa3e7b0d608f79ad4ce /core/src/fpdfapi/fpdf_edit | |
parent | 5417f067844892644486d7b0581c247904059a88 (diff) | |
download | pdfium-f85f4e42838e9d4c2cdbcd365970d42de6f826a0.tar.xz |
Merge to XFA: Fix some -Wmaybe-uninitialized errors.
- Break up CPDF_DIBSource::DownSampleScanline() into smaller functions.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1287843004 .
(cherry picked from commit 9ae9ae2a68439cbc84a719c0dacf6984703e77cb)
Review URL: https://codereview.chromium.org/1304873002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_edit')
-rw-r--r-- | core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp index 488d8393c7..1dd0ae6170 100644 --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp @@ -218,7 +218,7 @@ void CPDF_Image::SetImage(const CFX_DIBitmap* pBitmap, int32_t maskWidth = pMaskBitmap->GetWidth(); int32_t maskHeight = pMaskBitmap->GetHeight(); uint8_t* mask_buf = NULL; - FX_STRSIZE mask_size; + FX_STRSIZE mask_size = 0; CPDF_Dictionary* pMaskDict = new CPDF_Dictionary; pMaskDict->SetAtName(FX_BSTRC("Type"), FX_BSTRC("XObject")); pMaskDict->SetAtName(FX_BSTRC("Subtype"), FX_BSTRC("Image")); |