PVS-StudioWarnings

PVS-Studio warning V588 for libxml

Nov 11th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. static int
  2. xmlXPathCompOpEvalFirst(....)
  3. {
  4.   ...
  5.   total += xmlXPathCompOpEvalFirst(....);
  6.   ...
  7.   total =+ xmlXPathCompOpEvalFilterFirst(ctxt, op, first);
  8.   ...
  9. }
  10.  
  11. This suspicious code was found in libxml project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V588 The expression of the 'A =+ B' kind is utilized. Consider reviewing it, as it is possible that 'A += B' was meant. libxml xpath.c 12676
  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