aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Paul Saman <jean-paul.saman@m2x.nl>2014-02-04 10:20:45 (GMT)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>2014-02-04 10:20:45 (GMT)
commit6ab64fb30a0daa3a042d71abb6addd110d6e441a (patch)
tree9e6f68764ec8d6428d9613bb1ceaa93326739116
parent5cfd768ef39f1891e45fbbe806a88fa3562188d0 (diff)
ATSC MGT: make sure all members are initialized.
-rw-r--r--src/tables/atsc_mgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tables/atsc_mgt.c b/src/tables/atsc_mgt.c
index ef0eb20..3537274 100644
--- a/src/tables/atsc_mgt.c
+++ b/src/tables/atsc_mgt.c
@@ -186,7 +186,7 @@ dvbpsi_atsc_mgt_t *dvbpsi_atsc_NewMGT(uint8_t i_table_id, uint16_t i_extension,
uint8_t i_version, uint8_t i_protocol, bool b_current_next)
{
dvbpsi_atsc_mgt_t* p_mgt;
- p_mgt = (dvbpsi_atsc_mgt_t*)malloc(sizeof(dvbpsi_atsc_mgt_t));
+ p_mgt = (dvbpsi_atsc_mgt_t*)calloc(1, sizeof(dvbpsi_atsc_mgt_t));
if (p_mgt != NULL)
dvbpsi_atsc_InitMGT(p_mgt, i_table_id, i_extension, i_version, i_protocol, b_current_next);
return p_mgt;

Privacy Policy