Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char** argv) {
- ....
- ramp_fileoffset_t *pScanIndex;
- ....
- if ( (pFI=rampOpenFile(mzXmlPath_.c_str()))==NULL) {
- ....
- } else {
- ....
- pScanIndex = readIndex(pFI, indexOffset,
- &iAnalysisLastScan );
- ....
- }
- ....
- if (pScanIndex != NULL)
- free(pScanIndex);
- return 0;
- }
- This suspicious code was found in TPP project by PVS-Studio static code analyzer.
- Warning message is:
- V614 Potentially uninitialized pointer 'pScanIndex' used. sqt2xml.cxx 476
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment