summaryrefslogtreecommitdiff
path: root/src/input/libreal/sdpplin.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-30 01:12:20 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-30 01:12:20 +0100
commitbdcbdde85d5ae6e8f415442d5c28251a4aad8088 (patch)
treeb7fb5832b71a7178294c0e3874dfc07536f978aa /src/input/libreal/sdpplin.c
parentce9af0fefb2cd0dd5fe5743dcca12f17eedd1ce5 (diff)
downloadxine-lib-bdcbdde85d5ae6e8f415442d5c28251a4aad8088.tar.gz
xine-lib-bdcbdde85d5ae6e8f415442d5c28251a4aad8088.tar.bz2
Replace calloc (n, sizeof (char)) with malloc (n) where zero init isn't needed.
Diffstat (limited to 'src/input/libreal/sdpplin.c')
-rw-r--r--src/input/libreal/sdpplin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/libreal/sdpplin.c b/src/input/libreal/sdpplin.c
index 04554c45e..9117d15a5 100644
--- a/src/input/libreal/sdpplin.c
+++ b/src/input/libreal/sdpplin.c
@@ -206,7 +206,7 @@ static sdpplin_stream_t *sdpplin_parse_stream(char **data) {
if(filter(*data,"a=OpaqueData:buffer;",&buf)) {
decoded = b64_decode(buf, decoded, &(desc->mlti_data_size));
if ( decoded != NULL ) {
- desc->mlti_data = calloc(desc->mlti_data_size, sizeof(char));
+ desc->mlti_data = malloc(desc->mlti_data_size);
memcpy(desc->mlti_data, decoded, desc->mlti_data_size);
handled=1;
*data=nl(*data);