changeset 5599:b934eb97fffd libavformat

Use av_mallocz in url_open_protocol for URLContext. Patch by Daniel Kristjansson: danielk cuymedia net
author benoit
date Thu, 28 Jan 2010 09:11:26 +0000
parents cf1aeb986fd2
children 4266e4129b61
files avio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avio.c	Thu Jan 28 03:37:22 2010 +0000
+++ b/avio.c	Thu Jan 28 09:11:26 2010 +0000
@@ -76,7 +76,7 @@
     URLContext *uc;
     int err;
 
-    uc = av_malloc(sizeof(URLContext) + strlen(filename) + 1);
+    uc = av_mallocz(sizeof(URLContext) + strlen(filename) + 1);
     if (!uc) {
         err = AVERROR(ENOMEM);
         goto fail;