I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio:
lodepng/lodepng.cpp 5265 warn V547 Expression '!error' is always true.
The variable unsigned error = 0; was initialised but never used. In this function errors was realised as a return code, f.e.:
if(bpp == 0) return 31;
So variable error is not deeded here.
I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio: lodepng/lodepng.cpp 5265 warn V547 Expression '!error' is always true.
The variable unsigned error = 0; was initialised but never used. In this function errors was realised as a return code, f.e.: if(bpp == 0) return 31; So variable error is not deeded here.