1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Merge declaration and initialization.

Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-04-03 19:18:14 +00:00
parent 9b7ca3b71d
commit 11362767b8

View File

@ -131,9 +131,7 @@ void av_freep(void *arg)
void *av_mallocz(unsigned int size)
{
void *ptr;
ptr = av_malloc(size);
void *ptr = av_malloc(size);
if (ptr)
memset(ptr, 0, size);
return ptr;