Mercurial > mplayer.hg
changeset 29581:ee34a7062df0
Use calloc to ensure rmff_new_mdpr returns fully initialized data.
author | reimar |
---|---|
date | Wed, 02 Sep 2009 10:35:06 +0000 |
parents | d3df5ca12917 |
children | 10eefb258465 |
files | stream/realrtsp/rmff.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/realrtsp/rmff.c Wed Sep 02 10:28:08 2009 +0000 +++ b/stream/realrtsp/rmff.c Wed Sep 02 10:35:06 2009 +0000 @@ -570,7 +570,7 @@ uint32_t type_specific_len, const char *type_specific_data ) { - rmff_mdpr_t *mdpr=malloc(sizeof(rmff_mdpr_t)); + rmff_mdpr_t *mdpr=calloc(sizeof(rmff_mdpr_t),1); mdpr->object_id=MDPR_TAG; mdpr->object_version=0;