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