summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index ca022c8eb1..ec427deea3 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -76,7 +76,7 @@ int url_open_protocol (URLContext **puc, struct URLProtocol *up,
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;