Advertisement
PVS-StudioWarnings

PVS-Studio warning V560 for ReactOS

Nov 21st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. VOID
  2. UpdateLanStatus(HWND hwndDlg,  LANSTATUSUI_CONTEXT * pContext)
  3. {
  4.   ...
  5.   else if (IfEntry.dwOperStatus ==
  6.     MIB_IF_OPER_STATUS_UNREACHABLE ||
  7.       MIB_IF_OPER_STATUS_DISCONNECTED)
  8.   ...
  9. }
  10.  
  11. || and | are mixed up.
  12.  
  13. This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V560 A part of conditional expression is always true: 2. netshell lanstatusui.c 182
  16.  
  17. 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