mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
12f1b1fec4
commit
31277aebd9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user