PVS-StudioWarnings

PVS-Studio warning V522 for blender

Nov 20th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. static int render_new_particle_system(....)
  2. {
  3.   ParticleSettings *part, *tpart=0;
  4.   ...
  5.   // tpart don't used
  6.   ...
  7.   psys_particle_on_emitter(psmd,tpart->from,tpa->num,
  8.     pa->num_dmcache,tpa->fuv,tpa->foffset,
  9.     co,nor,0,0,sd.orco,0);
  10.   ...
  11. }
  12.  
  13. This suspicious code was found in blender project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V522 Dereferencing of the null pointer 'tpart' might take place. bf_render convertblender.c 1788
  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