Coverity: uninitialized values in ExifEntry_t structure

This commit is contained in:
Maksim Shabunin 2015-12-08 14:58:09 +03:00
parent 6dd5e7749b
commit fc641e2bde
2 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,12 @@ namespace {
namespace cv
{
ExifEntry_t::ExifEntry_t() :
field_float(0), field_double(0), field_u32(0), field_s32(0),
tag(0), field_u16(0), field_s16(0), field_u8(0), field_s8(0)
{
}
/**
* @brief ExifReader constructor
*/

View File

@ -111,6 +111,8 @@ typedef std::pair<uint32_t, uint32_t> u_rational_t;
*/
struct ExifEntry_t
{
ExifEntry_t();
std::vector<u_rational_t> field_u_rational; ///< vector of rational fields
std::string field_str; ///< any kind of textual information