Coverity: uninitialized values in ExifEntry_t structure

pull/5774/head
Maksim Shabunin 9 years ago
parent 6dd5e7749b
commit fc641e2bde
  1. 6
      modules/imgcodecs/src/jpeg_exif.cpp
  2. 2
      modules/imgcodecs/src/jpeg_exif.hpp

@ -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
*/

@ -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

Loading…
Cancel
Save