Fix bug with reading from uninitialized variable found by VC++'s /analyze.
authorTom Sepez <tsepez@chromium.org>
Thu, 6 Nov 2014 23:00:36 +0000 (15:00 -0800)
committerTom Sepez <tsepez@chromium.org>
Thu, 6 Nov 2014 23:00:36 +0000 (15:00 -0800)
commit09a22a6cd9758e630202d1730aaa8fd7898c91cb
tree4cc9b016ee1b8743889728371dd36a22a7b9ea38
parentd9ecee1065cf391979dee0051b53fb5ff729ca2e
Fix bug with reading from uninitialized variable found by VC++'s /analyze.

The flag variable is conditionally initialized but unconditionally read.

Warning was:
src\fpdfapi\fpdf_page\fpdf_page_pattern.cpp(274) : warning C6001:
Using uninitialized memory 'flag'.

BUG=427616
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/703213004
core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp