Zero initialize ch to avoid possible bug - conditions are very subtle.
authorBruce Dawson <brucedawson@google.com>
Mon, 17 Nov 2014 23:22:03 +0000 (15:22 -0800)
committerBruce Dawson <brucedawson@google.com>
Mon, 17 Nov 2014 23:22:03 +0000 (15:22 -0800)
commit9ae02acf2f33fc68a6f3c00c3ad86e15725b8941
tree9573c098eb605a2d2a2ca967322b01f0c7adea0e
parent418f6d0ddd5a1d3e93ebebd34cc42c3134b1bb84
Zero initialize ch to avoid possible bug - conditions are very subtle.

Whether ch and iRet are read without being initialized depends on complex
preconditions and cannot be determined by looking at these function.
Therefore it seems prudent to zero initialize them to avoid any risk.

BUG=427616
R=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/727083002
core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
core/src/fxcrt/fx_xml_parser.cpp