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
1 changed files with 1 additions and 3 deletions

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;