Commit dee60089 authored by michael's avatar michael

Merge declaration and initialization.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12676 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25e4cbec
...@@ -131,9 +131,7 @@ void av_freep(void *arg) ...@@ -131,9 +131,7 @@ void av_freep(void *arg)
void *av_mallocz(unsigned int size) void *av_mallocz(unsigned int size)
{ {
void *ptr; void *ptr = av_malloc(size);
ptr = av_malloc(size);
if (ptr) if (ptr)
memset(ptr, 0, size); memset(ptr, 0, size);
return ptr; return ptr;
......
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