Advertisement
PVS-StudioWarnings

PVS-Studio warning V571 for iecsdk

Nov 26th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. int main(int argc, char *argv[]) {
  2.   ...
  3.   if(ret == PL_FAILURE) {
  4.     if(ret == PL_FAILURE) {
  5.       pl_csv_logger_error(
  6.         PL_CSV_LOGGER_ERROR_UNABLE_TO_READ_PL
  7.     );
  8.   ...
  9. }
  10.  
  11. This suspicious code was found in iecsdk project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V571 Recurring check. The 'if (ret == PL_FAILURE)' condition was already verified in line 1008. pl_csv_logger pl_csv_logger.c 1009
  14.  
  15. 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
Advertisement