danilevsky / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Fix variable shadowing in Document.cpp #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From Bruce Dawson:

fpdfsdk/src/javascript/Document.cpp:639: CJS_Context* pContext =
(CJS_Context*)cc;

This newly added pContext variable now shadows two identical declarations and 
initializations in two inner scopes of this function. Around line 686 and 724 
of this file.

There is no bug, but the variable shadowing adds some confusion and should
probably be corrected.

This was found by /analyze in build 163.

Original issue reported on code.google.com by tsepez@chromium.org on 1 May 2015 at 5:19