Skip to content
Snippets Groups Projects
Commit 31277aeb authored by Daniel Kristjansson's avatar Daniel Kristjansson Committed by Benoit Fouet
Browse files

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
parent 12f1b1fe
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment