Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int render_new_particle_system(....)
- {
- ParticleSettings *part, *tpart=0;
- ...
- // tpart don't used
- ...
- psys_particle_on_emitter(psmd,tpart->from,tpa->num,
- pa->num_dmcache,tpa->fuv,tpa->foffset,
- co,nor,0,0,sd.orco,0);
- ...
- }
- This suspicious code was found in blender project by PVS-Studio static code analyzer.
- Warning message is:
- V522 Dereferencing of the null pointer 'tpart' might take place. bf_render convertblender.c 1788
- 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