PVS-StudioWarnings

PVS-Studio warning V530 for ReactOS

Nov 13th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1.   if (ERROR_SUCCESS == hres)
  2.   {
  3.     Names[count] = HeapAlloc(GetProcessHeap(), 0,
  4.                              strlenW(szValue) + 1);
  5.     if (Names[count])
  6.        strcmpW(Names[count], szValue);
  7.   }
  8.  
  9. It's strange that the result of calling the strcmpW() function is not used in any way.
  10.  
  11. This suspicious code was found in ReactOS project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V530 The return value of function 'wcscmp' is required to be utilized. msdmo dmoreg.c 617
  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