rwcarlsen / goexif

Decode embedded EXIF meta data from image files.
BSD 2-Clause "Simplified" License
627 stars 134 forks source link

fix shadowed err bug #17

Closed mpl closed 10 years ago

mpl commented 10 years ago

Hey there,

here's a fix for a bug that I think we introduced when Bill added TIFF images support, sorry about that. Without the fix, the err from the outer scope is shadowed by the err declared by newAppSec. So when tiff.Decode fails, the outer scope check for the error does not see that failure, and panic ensues :-)

Mathieu

rwcarlsen commented 10 years ago

Darn'd err shadowing. Thanks.