Skip to content

Commit

Permalink
Fix coverity false positive.
Browse files Browse the repository at this point in the history
eld_data would have been initialised in update_sad. In the other constructor, no field is ever accessed as the eld is marked as invalid.

So add default constructor to eld_data
  • Loading branch information
jyavenard committed Jun 21, 2013
1 parent c72c54e commit e170ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmyth/audio/eldutils.h
Expand Up @@ -120,6 +120,7 @@ class MPUBLIC ELD
int spk_alloc;
int sad_count;
struct cea_sad sad[ELD_MAX_SAD];
eld_data() { memset(this, 0, sizeof(*this)); }
};
eld_data m_e;
};
Expand Down

0 comments on commit e170ae3

Please sign in to comment.