diff options
author | Daniel Kristjansson <danielk@mrl.nyu.edu> | 2010-01-28 09:11:26 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-01-28 09:11:26 +0000 |
commit | 31277aebd906a796e630b9c2533ca73cdc5d58a8 (patch) | |
tree | 6a8d226f1f81b464f76d49022c296022fb8e606d /libavformat/avio.c | |
parent | 12f1b1fec4cb3ec7112da513b0789d57d73e4c96 (diff) | |
download | ffmpeg-31277aebd906a796e630b9c2533ca73cdc5d58a8.tar.gz |
Use av_mallocz in url_open_protocol for URLContext.
Patch by Daniel Kristjansson: danielk cuymedia net
Originally committed as revision 21501 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 2 |
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; |