Jeff-Lewis / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

General code cleanup #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running around the image code to verify some things and I'm not sure
how prevalent this sort of thing is but I find code like this:

if ( read ( data, 0, 4 ) != 4 ) return false;

The above code is in the jpeg parse function.  read() returns it's 3rd
argument unmodified, thus making that a contradiction. (it's always equal
to 4 so it never reaches the return)

Original issue reported on code.google.com by nomercy2...@gmail.com on 27 Apr 2009 at 6:04