Permalink
Browse files

Fix coverity false positive.

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 e170ae3f6519600d48bc4201a08aae88aad67baa
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmyth/audio/eldutils.h
@@ -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;
};

0 comments on commit e170ae3

Please sign in to comment.