Browse Source

Merge declaration and initialization.

Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 18 years ago
parent
commit
11362767b8
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavutil/mem.c

+ 1
- 3
libavutil/mem.c 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;


Loading…
Cancel
Save