]> git.saurik.com Git - wxWidgets.git/commit
Avoid warnings about uninitialized variables in TGA loading code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:47 +0000 (13:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Jul 2012 13:27:47 +0000 (13:27 +0000)
commit9d261cbb55f64d4041d1a7e44b39e2d63082a218
tree4131ca7e404ba7a83e7bb798cadd316df0163f51
parent85ad2fa7d2aeaa5f01ce1e1c34c3a04527671852
Avoid warnings about uninitialized variables in TGA loading code.

Initialize the variables containing the colour components: even though they
should normally be always filled by Palette_GetRGB() call below, this
presumably might not happen for a corrupted image with invalid palette table
entries and g++ correctly complains about it.

See #14459.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagtga.cpp