mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-25 16:53:20 +00:00
Merge declaration and initialization.
Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9b7ca3b71d
commit
11362767b8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user