Commit df64ec9d authored by benoit's avatar benoit

Use av_mallocz in url_open_protocol for URLContext.

Patch by Daniel Kristjansson: danielk cuymedia net


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21501 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b9f1aa98
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment